Searched refs:val (Results 1 - 25 of 354) sorted by relevance

1234567891011>>

/PHP_TRUNK/ext/exif/
H A Dexample.php17 foreach($section as $name=>$val) {
18 echo "$key.$name: $val<br>\n";
/PHP_TRUNK/ext/spl/examples/
H A Ddba_dump.php38 foreach($db as $key => $val) {
39 echo "'$key' => '$val'\n";
/PHP_TRUNK/win32/
H A Dstrtoi64.c12 int64_t val; local
62 val = 0;
96 val *= base;
98 || (neg && (val > acc || (val -= c) > acc)) /* underflow */
99 || (val < acc || (val += c) < acc)) { /* overflow */
105 acc = val;
H A Dphp_stdint.h233 #define INT8_C(val) val##i8
234 #define INT16_C(val) val##i16
235 #define INT32_C(val) val##i32
236 #define INT64_C(val) val##i64
238 #define UINT8_C(val) val##ui
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dmathmake.c40 int val; local
41 val = cost[(i + 270) % 360];
44 printf ("%d,\n ", val);
48 printf ("%d\n", val);
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dsample.c29 string.val = (unsigned char *)input;
36 puts(ret->val);
H A Demoji.c18 printf("%%%02x", ptr->val[i]);
83 if (result.val[i] >= 0xD8 && result.val[i] < 0xE0) { // Surrogate pair
84 int h = (result.val[i] & 0x07)<<8 | result.val[i+1];
85 int l = (result.val[i+2] & 0x03)<<8 | result.val[i+3];
90 printf("U+%x\n",(result.val[i] << 8) | result.val[i+1]);
103 memcpy(dev2.buffer, result.val, resul
[all...]
/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Ddoaddsub.c147 int borrow, count, val; local
184 val = - *n2ptr-- - borrow;
185 if (val < 0)
187 val += BASE;
192 *diffptr-- = val;
200 val = *n1ptr-- - *n2ptr-- - borrow;
201 if (val < 0)
203 val += BASE;
208 *diffptr-- = val;
216 val
[all...]
H A Dint2num.c45 bc_int2num (num, val)
47 int val;
55 if (val < 0)
58 val = -val;
63 *bptr++ = val % BASE;
64 val = val / BASE;
67 while (val != 0)
69 *bptr++ = val
[all...]
H A Dnum2long.c50 long val; local
55 val = 0;
57 for (index=num->n_len; (index>0) && (val<=(LONG_MAX/BASE)); index--)
58 val = val*BASE + *nptr++;
61 if (index>0) val = 0;
62 if (val < 0) val = 0;
66 return (val);
68 return (-val);
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.c51 string->val = (unsigned char*)NULL;
62 string->val = (unsigned char*)NULL;
71 if (string->val != (unsigned char*)NULL) {
72 mbfl_free(string->val);
74 string->val = (unsigned char*)NULL;
/PHP_TRUNK/ext/soap/
H A Dphp_packet_soap.c237 add_soap_fault(this_ptr, faultcode, faultstring ? faultstring->val : NULL, faultactor ? faultactor->val : NULL, &details);
261 xmlNodePtr val = NULL; local
299 val = cur;
301 val = get_node(cur->children, param->paramName);
303 if (val == NULL) {
304 val = get_node(cur->children, "return");
306 if (val == NULL) {
307 val = get_node(cur->children, "result");
309 if (val
339 xmlNodePtr val; local
398 zval val; local
416 add_assoc_zval(soap_headers, (char*)trav->name, &val); local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_float.h134 a variable to ensure that the expression passed into val will be evaluated
136 # define XPFPA_RETURN_DOUBLE(val) \
138 double _xpfpa_result = (val); \
142 # define XPFPA_RETURN_SINGLE(val) \
144 float _xpfpa_result = (val); \
149 # define XPFPA_RETURN_DOUBLE_EXTENDED(val) \
151 long double _xpfpa_result = (val); \
193 a variable to ensure that the expression passed into val will be evaluated
195 # define XPFPA_RETURN_DOUBLE(val) \
197 double _xpfpa_result = (val); \
[all...]
H A Dzend_string.h42 #define _STR_HEADER_SIZE XtOffsetOf(zend_string, val)
52 memcpy((str)->val, (s), (len)); \
53 (str)->val[(len)] = '\0'; \
61 s->h = zend_hash_func(s->val, s->len);
135 memcpy(ret->val, str, len);
136 ret->val[len] = '\0';
153 return zend_string_init(s->val, s->len, persistent);
172 memcpy(ret->val, s->val, (len > s->len ? s->len : len) + 1);
192 memcpy(ret->val,
[all...]
/PHP_TRUNK/ext/dba/libinifile/
H A Dinifile.h35 val_type val; member in struct:__anon59
53 int inifile_replace(inifile *dba, const key_type *key, const val_type *val);
54 int inifile_replace_ex(inifile *dba, const key_type *key, const val_type *val, zend_bool *found);
55 int inifile_append(inifile *dba, const key_type *key, const val_type *val);
62 void inifile_val_free(val_type *val);
/PHP_TRUNK/ext/standard/
H A Dbase64.c63 p = (unsigned char *)result->val;
90 result->len = (p - (unsigned char *)result->val);
173 result->val[j] = ch << 2;
176 result->val[j++] |= ch >> 4;
177 result->val[j] = (ch & 0x0f) << 4;
180 result->val[j++] |= ch >>2;
181 result->val[j] = (ch & 0x03) << 6;
184 result->val[j++] |= ch;
200 result->val[k] = 0;
204 result->val[resul
[all...]
H A Durl_scanner_ex.re59 tmp = estrndup(new_value->val, new_value->len);
75 char *val;
77 val = strchr(key, '=');
78 if (val) {
82 *val++ = '\0';
87 val is stored WITH NUL */
88 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
121 q = (p = url->s->val) + url->s->len;
133 if (bash && bash - url->s->val
[all...]
H A Dincomplete_class.c44 php_error_docref(NULL, error_type, INCOMPLETE_CLASS_MSG, class_name->val);
137 zval *val; local
142 if ((val = zend_hash_str_find(object_properties, MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1)) != NULL && Z_TYPE_P(val) == IS_STRING) {
143 return zend_string_copy(Z_STR_P(val));
154 zval val; local
157 ZVAL_STRINGL(&val, name, len);
158 zend_hash_str_update(Z_OBJPROP_P(object), MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1, &val);
/PHP_TRUNK/main/
H A Dphp_variables.h39 PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array);
41 PHPAPI void php_register_variable_safe(char *var, char *val, size_t val_len, zval *track_vars_array);
42 PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array);
/PHP_TRUNK/ext/session/
H A Dmod_user_class.c74 zend_string *val; local
83 if (PS(default_mod)->s_read(&PS(mod_data), key, &val, PS(gc_maxlifetime)) == FAILURE) {
88 RETURN_STR(val);
96 zend_string *key, *val; local
100 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS", &key, &val) == FAILURE) {
104 RETURN_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, PS(gc_maxlifetime)));
180 zend_string *key, *val; local
184 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS", &key, &val) == FAILURE) {
189 RETVAL_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, PS(gc_maxlifetime)));
H A Dmod_files.c223 static int ps_files_write(ps_files *data, zend_string *key, zend_string *val) argument
230 ps_files_open(data, key->val);
236 if (val->len < data->st_size) {
241 n = pwrite(data->fd, val->val, val->len, 0);
246 unsigned int to_write = val->len > UINT_MAX ? UINT_MAX : (unsigned int)val->len;
247 char *buf = val->val;
[all...]
/PHP_TRUNK/ext/json/
H A Dphp_json_encoder.h25 void php_json_encode_zval(smart_str *buf, zval *val, int options);
H A Djson_encoder.c46 static int php_json_determine_array_type(zval *val) /* {{{ */ argument
49 HashTable *myht = HASH_OF(val);
118 static void php_json_encode_array(smart_str *buf, zval *val, int options) /* {{{ */ argument
123 if (Z_TYPE_P(val) == IS_ARRAY) {
124 myht = HASH_OF(val);
125 r = (options & PHP_JSON_FORCE_OBJECT) ? PHP_JSON_OUTPUT_OBJECT : php_json_determine_array_type(val);
127 myht = Z_OBJPROP_P(val);
172 if (key->val[0] == '\0' && Z_TYPE_P(val) == IS_OBJECT) {
189 php_json_escape_string(buf, key->val, ke
446 php_json_encode_serializable_object(smart_str *buf, zval *val, int options) argument
495 php_json_encode_zval(smart_str *buf, zval *val, int options) argument
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_print.c69 method->common.scope->name->val,
70 method->common.function_name->val,
71 op_array->filename ? op_array->filename->val : "unknown");
76 method->common.function_name ? method->common.function_name->val : "{main}",
77 op_array->filename ? op_array->filename->val : "unknown");
101 phpdbg_writeln("printoplineinfo", "type=\"Internal\" method=\"%s::%s\"", "\tInternal %s::%s()", method->common.scope->name->val, method->common.function_name->val);
103 phpdbg_writeln("printoplineinfo", "type=\"Internal\" function=\"%s\"", "\tInternal %s()", method->common.function_name->val);
134 phpdbg_notice("printinfo", "method=\"%s::%s\" num=\"%d\"", "Stack in %s::%s() (%d ops)", ops->scope->name->val, ops->function_name->val, op
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dzend_optimizer.c37 zval val; local
43 ZVAL_DUP(&val, value);
44 zend_hash_add(ctx->constants, Z_STR_P(name), &val);
49 zval *val; local
51 if ((val = zend_hash_find(constants, Z_STR_P(name))) != NULL) {
52 ZVAL_DUP(value, val);
67 memcmp(op_array->vars[i]->val, name->val, name->len) == 0)) {
123 zval *val)
127 zval_dtor(val);
121 zend_optimizer_update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
160 zend_optimizer_update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
296 zend_optimizer_replace_by_const(zend_op_array *op_array, zend_op *opline, zend_uchar type, uint32_t var, zval *val) argument
[all...]

Completed in 60 milliseconds

1234567891011>>