Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/PHP-8.4/ext/standard/tests/general_functions/
H A Dcall_user_func_array_variation_001.phpt6 function by_val($arg) {
7 $arg = 'changed';
10 function by_ref(&$arg) {
11 $arg = 'changed';
15 $arg = array('original');
17 var_dump($arg);
22 var_dump($arg);
26 $ref = &$arg[0];
28 var_dump($arg);
32 $ref = &$arg[0];
[all …]
H A Dgetopt_005.phpt4 --arg value --arg=value -avalue -a=value -a value
10 var_dump(getopt("a:", array("arg:")));
14 ["arg"]=>
/PHP-8.4/Zend/
H A Dzend_frameless_function.h46 dest = arg ## arg_num;
58 if (Z_TYPE_P(arg ## arg_num) == IS_STRING) { \
60 dest_str = Z_STR_P(arg ## arg_num); \
62 dest_ht = Z_ARRVAL_P(arg ## arg_num); \
66 ZVAL_COPY(&str_tmp, arg ## arg_num); \
67 arg ## arg_num = &str_tmp; \
90 dest = Z_STR_P(arg ## arg_num); \
92 ZVAL_COPY(&tmp, arg ## arg_num); \
93 arg ## arg_num = &tmp; \
100 if (UNEXPECTED(arg ## arg_num == &tmp)) { \
[all …]
H A Dzend_API.h537 #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0)) argument
538 #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size)) argument
2262 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_number()
2263 *dest = arg; in zend_parse_arg_number()
2274 …if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE || Z_TYPE_P(arg) == IS_STRING)… in zend_parse_arg_number_or_str()
2275 *dest = arg; in zend_parse_arg_number_or_str()
2351 *dest = arg; in zend_parse_arg_iterable()
2367 *dest = arg; in zend_parse_arg_array()
2426 *dest = arg; in zend_parse_arg_object()
2474 *dest = arg; in zend_parse_arg_resource()
[all …]
H A Dzend_API.c149 ZVAL_DEREF(arg); in zend_zval_value_name()
168 ZVAL_DEREF(arg); in zend_zval_type_name()
715 *dest = arg; in zend_parse_arg_number_slow()
739 *dest = arg; in zend_parse_arg_number_or_str_slow()
746 *dest = arg; in zend_parse_arg_number_or_str_slow()
818 ZVAL_DEREF(arg); in zend_parse_arg_impl()
822 real_arg = arg; in zend_parse_arg_impl()
1151 zval *arg; in zend_parse_va_args() local
1809 ZVAL_NULL(arg); in _object_and_properties_init()
1816 ZVAL_NULL(arg); in _object_and_properties_init()
[all …]
/PHP-8.4/Zend/tests/type_declarations/union_types/
H A Dtype_checking_strict.phpt22 $fn = eval("return function($type \$arg) { return \$arg; };");
36 $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
69 "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
70 "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
71 "42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
72 "x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
74 true => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, true given
75 false => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, false given
76 null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, null given
77 [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, array given
[all …]
H A Dtype_checking_weak.phpt20 $fn = eval("return function($type \$arg) { return \$arg; };");
34 $msg = str_replace('{closure}(): Argument #1 ($arg)', 'Argument ...', $msg);
69 "42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
70 "x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
71 "" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given
74 null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, null given
75 [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, array given
76 new stdClass => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, stdClass given
122 null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, null given
123 [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, array given
[all …]
/PHP-8.4/main/
H A Dphp_ticks.c23 void *arg; member
46 return e1->func == e2->func && e1->arg == e2->arg; in php_compare_tick_functions()
49 PHPAPI void php_add_tick_function(void (*func)(int, void*), void * arg) in php_add_tick_function() argument
51 struct st_tick_function tmp = {func, arg}; in php_add_tick_function()
55 PHPAPI void php_remove_tick_function(void (*func)(int, void *), void * arg) in php_remove_tick_function() argument
57 struct st_tick_function tmp = {func, arg}; in php_remove_tick_function()
61 static void php_tick_iterator(void *d, void *arg) in php_tick_iterator() argument
64 data->func(*((int *)arg), data->arg); in php_tick_iterator()
H A Dphp_ini_builder.c63 PHPAPI void php_ini_builder_define(struct php_ini_builder *b, const char *arg) in php_ini_builder_define() argument
65 const size_t len = strlen(arg); in php_ini_builder_define()
66 const char *val = strchr(arg, '='); in php_ini_builder_define()
71 php_ini_builder_quoted(b, arg, val - arg - 1, val, arg + len - val); in php_ini_builder_define()
74 memcpy(b->value + b->length, arg, len); in php_ini_builder_define()
79 php_ini_builder_unquoted(b, arg, len, "1", 1); in php_ini_builder_define()
/PHP-8.4/ext/reflection/tests/
H A Dbug33389.phpt7 function foo1($arg=foobar) {
9 function foo2($arg=null) {
11 function foo3($arg=false) {
13 function foo4($arg='foo') {
15 function foo5($arg=1) {
17 function bar($arg) {
45 Parameter #0 [ <optional> $arg = foobar ]
53 Parameter #0 [ <optional> $arg = NULL ]
61 Parameter #0 [ <optional> $arg = false ]
77 Parameter #0 [ <optional> $arg = 1 ]
[all …]
/PHP-8.4/ext/standard/
H A Dtype.c22 zval *arg; in PHP_FUNCTION() local
26 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
41 zval *arg; in PHP_FUNCTION() local
45 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
241 zval *arg; in php_is_type() local
244 Z_PARAM_ZVAL(arg) in php_is_type()
281 zval *arg; in PHP_FUNCTION() local
284 Z_PARAM_ZVAL(arg) in PHP_FUNCTION()
369 zval *arg; in PHP_FUNCTION() local
381 zval *arg; variable
[all …]
H A Dpack.c105 return ((arg & 0xFF) << 8) | ((arg >> 8) & 0xFF); in php_pack_reverse_int16()
112 …result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xF… in php_pack_reverse_int32()
125 tmp.i = arg; in php_pack_reverse_int64()
257 int arg = 1; in PHP_FUNCTION() local
264 arg = -1; in PHP_FUNCTION()
282 if (arg < 0) { in PHP_FUNCTION()
284 arg = 1; in PHP_FUNCTION()
301 if (arg < 0) { in PHP_FUNCTION()
313 arg++; in PHP_FUNCTION()
389 INC_OUTPUTPOS((arg + (arg % 2)) / 2,1) /* 4 bit per arg */ in PHP_FUNCTION()
[all …]
/PHP-8.4/ext/phar/phar/
H A Dclicommand.inc148 return (bool)$arg;
153 if ((int)$arg != $arg) {
157 return (int)$arg;
162 if (strlen($arg)) {
163 … if (strlen($arg) > 1 && $arg[0] == $arg[strlen($arg)-1] && strpos('/,', $arg) !== false) {
164 return $arg;
178 return $arg;
183 $f = realpath($arg);
204 $d = dirname($arg);
251 $arg = "-$arg ";
[all …]
/PHP-8.4/Zend/tests/named_params/
H A Dundef_var.phpt2 Passing undefined variable to named arg
6 function func1($arg) { var_dump($arg); }
7 func1(arg: $undef);
8 func2(arg: $undef);
9 function func2($arg) { var_dump($arg); }
/PHP-8.4/Zend/tests/
H A Dbug70332.phpt5 function & test($arg) {
6 return $arg;
9 $arg = new Stdclass();
10 $arg->name = array();
12 test($arg)->name[1] = "xxxx";
14 print_r($arg);
H A Dbug76047.phpt15 function test($arg) {
16 $arg = str_shuffle(str_repeat('A', 79));
18 $vuln->a = $arg;
21 function test2($arg) {
22 $$arg = 1; // Trigger symbol table
23 $arg = str_shuffle(str_repeat('A', 79));
25 $vuln->a = $arg;
H A Dobjects_004.phpt9 function foo($arg) {}
13 function foo($arg) {}
17 function foo(&$arg) {}
22 Fatal error: Declaration of test3::foo(&$arg) must be compatible with test::foo($arg) in %s on line…
H A Dobjects_003.phpt9 function foo($arg) {}
13 function foo($arg) {}
17 function foo($arg, $arg2) {}
22 Fatal error: Declaration of test3::foo($arg, $arg2) must be compatible with test::foo($arg) in %s o…
H A Dobjects_008.phpt7 function foo(Test $arg) {}
11 function foo(Test $arg) {}
15 function foo(Test3 $arg) {}
20 Fatal error: Declaration of test3::foo(Test3 $arg) must be compatible with test::foo(Test $arg) in …
H A Dobjects_007.phpt9 function foo($arg, &$arg2 = NULL) {}
13 function foo($arg, &$arg2 = NULL) {}
17 function foo($arg, &$arg2) {}
22 Fatal error: Declaration of test3::foo($arg, &$arg2) must be compatible with test::foo($arg, &$arg2…
H A Dobjects_006.phpt9 function foo($arg, $arg2 = NULL) {}
13 function foo($arg, $arg2 = NULL) {}
17 function foo($arg, $arg2) {}
22 Fatal error: Declaration of test3::foo($arg, $arg2) must be compatible with test::foo($arg, $arg2 =…
/PHP-8.4/sapi/fpm/fpm/
H A Dfpm_cleanup.c13 void *arg; member
18 int fpm_cleanup_add(int type, void (*cleanup)(int, void *), void *arg) /* {{{ */ in fpm_cleanup_add() argument
30 c->arg = arg; in fpm_cleanup_add()
43 c->cleanup(type, c->arg); in fpm_cleanups_run()
/PHP-8.4/ext/mbstring/tests/
H A Dbug43994.phpt25 echo "Without \$regs arg:\n";
32 echo "With \$regs arg:\n";
45 Without $regs arg:
47 With $regs arg:
52 Without $regs arg:
54 With $regs arg:
59 Without $regs arg:
61 With $regs arg:
66 Without $regs arg:
68 With $regs arg:
/PHP-8.4/ext/gmp/tests/
H A Dbug80560.phpt129 echo $function, ' arg 1 failed with 0B', \PHP_EOL;
133 echo $function, ' arg 1 failed with 0b', \PHP_EOL;
137 echo $function, ' arg 1 failed with 0X', \PHP_EOL;
141 echo $function, ' arg 1 failed with 0x', \PHP_EOL;
145 echo $function, ' arg 2 failed with 0B', \PHP_EOL;
149 echo $function, ' arg 2 failed with 0b', \PHP_EOL;
153 echo $function, ' arg 2 failed with 0X', \PHP_EOL;
157 echo $function, ' arg 2 failed with 0x', \PHP_EOL;
163 echo $function, ' arg 1 failed with 0B', \PHP_EOL;
167 echo $function, ' arg 1 failed with 0b', \PHP_EOL;
[all …]
/PHP-8.4/ext/spl/tests/
H A Dspl_004.phpt12 function test_arg($arg)
14 if ($arg instanceof Iterator)
16 var_dump($arg->key());
17 var_dump($arg->current());
21 var_dump($arg);
28 static $arg = 0;
29 var_dump($arg++);

Completed in 80 milliseconds

12345678910>>...20