Home
last modified time | relevance | path

Searched refs:value (Results 51 – 75 of 2424) sorted by relevance

12345678910>>...97

/php-src/ext/spl/tests/
H A DRecursiveCallbackFilterIteratorTest.phpt7 function test($value, $key, $inner) {
8 return test($value, $key, $inner);
14 return test($value, $key, $inner);
18 function test($value, $key, $inner) {
23 , print_r($value, true)
25 , $value == $inner->current()
28 return $value === 1 || $value === 4;
48 foreach($it as $value) {
49 echo "=> $value\n";
59 foreach($it as $value) {
[all …]
/php-src/main/
H A Dphp_ini_builder.h27 char *value; member
35 b->value = NULL; in BEGIN_EXTERN_C()
41 free(b->value); in php_ini_builder_deinit()
49 if (b->value != NULL) { in php_ini_builder_finish()
51 b->value[b->length] = '\0'; in php_ini_builder_finish()
54 return b->value; in php_ini_builder_finish()
65 b->value = realloc(b->value, b->length + delta + 1); in php_ini_builder_realloc()
81 …uct php_ini_builder *b, const char *name, size_t name_length, const char *value, size_t value_leng…
86 …uct php_ini_builder *b, const char *name, size_t name_length, const char *value, size_t value_leng…
/php-src/ext/dba/
H A Ddba_qdbm.c77 char *value; in DBA_FETCH_FUNC() local
82 if (value) { in DBA_FETCH_FUNC()
84 free(value); in DBA_FETCH_FUNC()
108 char *value; in DBA_EXISTS_FUNC() local
111 if (value) { in DBA_EXISTS_FUNC()
112 free(value); in DBA_EXISTS_FUNC()
130 char *value; in DBA_FIRSTKEY_FUNC() local
136 if (value) { in DBA_FIRSTKEY_FUNC()
138 free(value); in DBA_FIRSTKEY_FUNC()
148 char *value; in DBA_NEXTKEY_FUNC() local
[all …]
H A Ddba_tcadb.c87 char *value; in DBA_FETCH_FUNC() local
92 if (value) { in DBA_FETCH_FUNC()
94 tcfree(value); in DBA_FETCH_FUNC()
125 char *value; in DBA_EXISTS_FUNC() local
129 if (value) { in DBA_EXISTS_FUNC()
130 tcfree(value); in DBA_EXISTS_FUNC()
148 char *value; in DBA_FIRSTKEY_FUNC() local
154 if (value) { in DBA_FIRSTKEY_FUNC()
156 tcfree(value); in DBA_FIRSTKEY_FUNC()
166 char *value; in DBA_NEXTKEY_FUNC() local
[all …]
/php-src/Zend/
H A Dzend_ini.c157 new_entry->value = zend_string_dup(old_entry->value, 1); in copy_ini_entry()
254 p->value = ini_entry->value ? in zend_register_ini_entries_ex()
533 return ini_entry->value ? ini_entry->value : NULL; in zend_ini_str_ex()
904 int value; in ZEND_INI_DISP() local
918 value = 0; in ZEND_INI_DISP()
921 if (value) { in ZEND_INI_DISP()
931 char *value; in ZEND_INI_DISP() local
936 value = ZSTR_VAL(ini_entry->value); in ZEND_INI_DISP()
940 if (value) { in ZEND_INI_DISP()
958 char *value; in ZEND_INI_DISP() local
[all …]
/php-src/Zend/tests/
H A Dbug37212.phpt8 protected $value;
12 $this->value = $val;
17 return $this->value;
25 $this->value = $obj->getValue();
26 $this->value = $obj->value; // value defined in common base class
43 ["value":protected]=>
47 ["value":protected]=>
51 ["value":protected]=>
/php-src/ext/standard/tests/file/
H A Duserstreams_003.phpt25 echo "\$value === $value === " . $this->expected_value. ":\n";
64 value:
70 $value === 0 === 0:
75 value:
81 $value === 1 === 1:
86 value:
102 value:
113 value:
124 value:
135 value:
[all …]
/php-src/ext/standard/tests/class_object/
H A Dmethod_exists_variation_001.phpt74 echo "\nArg value $value \n";
89 Arg value 0
92 Arg value 1
136 Arg value
139 Arg value
145 Arg value
151 Arg value
154 Arg value
157 Arg value
168 Arg value
[all …]
H A Dget_class_methods_variation_001.phpt72 echo "\nArg value " . (is_object($value) ? get_class($value) : $value) . "\n";
86 Arg value 0
89 Arg value 1
133 Arg value
136 Arg value
142 Arg value
148 Arg value
151 Arg value
154 Arg value
167 Arg value
[all …]
H A Dget_class_variation_001.phpt63 foreach($values as $value) {
64 echo @"\nArg value: $value (type: " . gettype($value) . ")\n";
81 Arg value: 0 (type: integer)
84 Arg value: 1 (type: integer)
123 Arg value: (type: NULL)
126 Arg value: (type: NULL)
132 Arg value: (type: boolean)
141 Arg value: (type: string)
144 Arg value: (type: string)
153 Arg value: (type: NULL)
[all …]
H A Dget_parent_class_variation_002.phpt74 echo "\nArg value " . (is_object($value) ? get_class($value) : $value) . "\n";
89 Arg value 0
92 Arg value 1
136 Arg value
139 Arg value
145 Arg value
151 Arg value
154 Arg value
157 Arg value
171 Arg value
[all …]
/php-src/ext/zend_test/tests/
H A Dfiber_test_01.phpt9 $value = Fiber::suspend(123);
10 var_dump($value); // int(246)
11 return $value;
16 $value = $fiber->start();
17 var_dump($value); // int(123)
18 $value = $fiber->resume(2 * $value);
19 var_dump($value); // NULL
H A Dfiber_test_03.phpt9 $value = Fiber::suspend(1);
10 var_dump($value); // int(2)
17 $value = $fiber->start();
18 var_dump($value); // int(1)
19 $value = $fiber->resume(2 * $value);
20 var_dump($value); // int(3)
21 $value = $fiber->throw(new Exception('test'));
/php-src/ext/json/tests/
H A Dbug40503.phpt2 Bug #40503 (json_encode() value corruption on 32bit systems with overflown values)
11 $value = 0x7FFFFFFF; #2147483647;
12 json_test_show_eq("$value", json_encode($value));
13 $value++;
14 json_test_show_eq("$value", json_encode($value));
/php-src/Zend/tests/type_declarations/
H A Dscalar_strict_basic.phpt27 function type($value) {
43 echo PHP_EOL . "*** Trying ", type($value), " value", PHP_EOL;
59 *** Trying float value
62 *** Trying string value
65 *** Trying true value
68 *** Trying false value
71 *** Trying null value
74 *** Trying array value
94 *** Trying true value
100 *** Trying null value
[all …]
/php-src/Zend/tests/match/
H A D039.phpt6 $value = 1;
8 echo match ($value) {
18 echo match ($value) {
27 echo match ($value) {
36 echo match ($value) {
42 echo match ($value) {
48 echo match ($value) {
/php-src/ext/opcache/tests/
H A Dbug75357.phpt12 function wp_slash( $value ) {
13 if ( is_array( $value ) ) {
14 foreach ( $value as $k => $v ) {
16 $value[$k] = wp_slash( $v );
18 $value[$k] = addslashes( $v );
22 $value = addslashes( $value );
25 return $value;
/php-src/ext/filter/
H A Dcallback_filter.c27 zval_ptr_dtor(value); in php_filter_callback()
28 ZVAL_NULL(value); in php_filter_callback()
32 ZVAL_COPY(&args[0], value); in php_filter_callback()
36 zval_ptr_dtor(value); in php_filter_callback()
37 ZVAL_COPY_VALUE(value, &retval); in php_filter_callback()
39 zval_ptr_dtor(value); in php_filter_callback()
40 ZVAL_NULL(value); in php_filter_callback()
/php-src/ext/pgsql/tests/
H A Dbug68638.phpt16 pg_query($conn, "CREATE TABLE $table (id INT, value FLOAT)");
18 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2));
19 pg_insert($conn,$table, array('id' => 2, 'value' => 10));
20 pg_insert($conn,$table, array('id' => 3, 'value' => 15));
24 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1));
25 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2));
26 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3));
44 string(52) "UPDATE "test_68638" SET "value"=E'inf' WHERE "id"=1;"
48 ["value"]=>
54 ["value"]=>
[all …]
H A Dgh13354.phpt24 echo "pg_execute, null value: " . pg_fetch_result($res, 0, 0) . "\n";
34 echo "pg_query_params, null value: " . pg_fetch_result($res, 0, 0) . "\n";
60 echo "pg_send_execute, null value: " . pg_fetch_result($res, 0, 0) . "\n";
73 pg_execute, null value: t
74 pg_execute, null value by reference: t
75 pg_query_params, null value: t
76 pg_query_params, null value by reference: t
77 pg_send_query_params, null value: t
78 pg_send_query_params, null value by reference: t
79 pg_send_execute, null value: t
[all …]
/php-src/ext/standard/tests/array/
H A Darray_filter_variation8.phpt18 echo "callback function with int return value\n";
21 // float as return value
29 // string as return value
32 return 'value';
37 // null as return value
45 // array as return value
57 callback function with int return value
78 callback function with float return value
99 callback function with string return value
120 callback function with null return value
[all …]
/php-src/ext/standard/tests/strings/
H A Dstrspn_variation9.phpt58 -- Iteration with str value "" --
61 -- Iteration with str value "" --
64 -- Iteration with str value "
68 -- Iteration with str value "\n" --
71 -- Iteration with str value "hello world
86 -- Iteration with str value "hello%0world
90 -- Iteration with str value "hello\0world\012" --
93 -- Iteration with str value "%0%0" --
102 -- Iteration with str value "hello%0world" --
105 -- Iteration with str value "hello%0world" --
[all …]
H A Dstrcspn_variation9.phpt58 -- Iteration with str value "" --
61 -- Iteration with str value "" --
64 -- Iteration with str value "
68 -- Iteration with str value "\n" --
71 -- Iteration with str value "hello world
86 -- Iteration with str value "hello%0world
90 -- Iteration with str value "hello\0world\012" --
93 -- Iteration with str value "%0%0" --
102 -- Iteration with str value "hello%0world" --
105 -- Iteration with str value "hello%0world" --
[all …]
/php-src/Zend/tests/weakrefs/
H A Dweakmap_iteration.phpt9 foreach ($map as $key => $value) {
10 var_dump($key, $value);
20 foreach ($map as $key => $value) {
21 var_dump($key, $value);
25 foreach ($map as $key => $value) {
27 var_dump($key, $value);
31 foreach ($map as $key => &$value) {
32 $value++;
69 ["value"]=>
77 ["value"]=>
/php-src/ext/standard/tests/general_functions/
H A Dintval.phpt36 foreach ($valid_ints as $value ) {
37 var_dump( intval($value) );
42 foreach ($valid_ints as $value ) {
43 var_dump( intval($value, 10) );
48 foreach ($valid_ints as $value ) {
49 var_dump( intval($value, 16) );
53 foreach ($valid_ints as $value ) {
54 var_dump( intval($value, 8) );
73 '-2147483649', // float value
74 '2147483648', // float value
[all …]

Completed in 41 milliseconds

12345678910>>...97