Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/PHP-8.1/sapi/fuzzer/
H A Dfuzzer-mbstring.c33 char *args[2]; in LLVMFuzzerTestOneInput() local
44 args[0] = data; in LLVMFuzzerTestOneInput()
45 args[1] = "test123"; in LLVMFuzzerTestOneInput()
46 fuzzer_call_php_func("mb_ereg", 2, args); in LLVMFuzzerTestOneInput()
48 args[0] = data; in LLVMFuzzerTestOneInput()
49 args[1] = "test123"; in LLVMFuzzerTestOneInput()
52 args[0] = data; in LLVMFuzzerTestOneInput()
53 args[1] = data; in LLVMFuzzerTestOneInput()
54 fuzzer_call_php_func("mb_ereg", 2, args); in LLVMFuzzerTestOneInput()
56 args[0] = data; in LLVMFuzzerTestOneInput()
[all …]
H A Dfuzzer-unserializehash.c60 zval args[2]; in LLVMFuzzerTestOneInput() local
61 ZVAL_COPY_VALUE(&args[0], &result); in LLVMFuzzerTestOneInput()
62 ZVAL_STRINGL(&args[1], (char *) Data, (Start - Data) - 1); in LLVMFuzzerTestOneInput()
63 fuzzer_call_php_func_zval("hash_update", 2, args); in LLVMFuzzerTestOneInput()
64 zval_ptr_dtor(&args[1]); in LLVMFuzzerTestOneInput()
65 fuzzer_call_php_func_zval("hash_final", 1, args); in LLVMFuzzerTestOneInput()
/PHP-8.1/ext/session/
H A Dmod_user.c82 zval args[2]; in PS_OPEN_FUNC() local
139 zval args[1]; in PS_READ_FUNC() local
142 ZVAL_STR_COPY(&args[0], key); in PS_READ_FUNC()
159 zval args[2]; in PS_WRITE_FUNC() local
162 ZVAL_STR_COPY(&args[0], key); in PS_WRITE_FUNC()
163 ZVAL_STR_COPY(&args[1], val); in PS_WRITE_FUNC()
172 zval args[1]; in PS_DESTROY_FUNC() local
175 ZVAL_STR_COPY(&args[0], key); in PS_DESTROY_FUNC()
184 zval args[1]; in PS_GC_FUNC() local
238 zval args[1]; in PS_VALIDATE_SID_FUNC() local
[all …]
/PHP-8.1/ext/standard/tests/general_functions/
H A Dbug40398.phpt18 $args = func_get_args();
19 call_user_func_array(array($this, 'Base::__construct'), $args);
27 $args = func_get_args();
36 $args = func_get_args();
37 call_user_func_array('Base::__construct', $args);
45 $args = func_get_args();
46 call_user_func_array('parent::__construct', $args);
54 $args = func_get_args();
55 call_user_func_array(array('Base', '__construct'), $args);
63 $args = func_get_args();
[all …]
/PHP-8.1/ext/standard/tests/class_object/
H A Dbug71442.phpt10 $args = func_get_args();
11 echo static::NAME, " ".join(',', $args)." \n";
21 forward_static_call(array('A', 'test'), 'more', 'args');
22 forward_static_call( 'test', 'other', 'args');
29 $args = func_get_args();
30 echo "C ".join(',', $args)." \n";
36 B more,args
37 C other,args
/PHP-8.1/Zend/tests/
H A Dcall_user_func_array_prefer_ref.phpt9 $args = [[3, 2, 1]];
10 call_user_func_array('array_multisort', $args);
11 var_dump($args);
12 unset($args);
23 $args = [[3, 2, 1]];
24 call_user_func_array('array_multisort', $args);
25 var_dump($args);
26 unset($args);
H A Ddebug_backtrace_limit.phpt30 [args] => Array
44 [args] => Array
55 [args] => Array
69 [args] => Array
80 [args] => Array
91 [args] => Array
105 [args] => Array
116 [args] => Array
127 [args] => Array
H A Dindirect_call_string_001.phpt16 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
31 $args = ['arg1', 'arg2', 'arg3'];
34 // Test call with args.
35 $callback($args[0], $args[1], $args[2]);
38 $callback(...$args);
44 Static method called with args: arg1, arg2, arg3
45 Static method called with args: arg1, arg2, arg3
H A Dbug28377.phpt2 Bug #28377 (debug_backtrace is intermittently passing args)
14 echo $traceName ." -- args: ";
15 echo isset($btInfo[0]['args']) ? count($btInfo[0]['args']) : 'does not exist';
22 dereferenced -- args: 2
23 direct -- args: 2
H A Dbug68475.phpt14 printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
26 $args = ['arg1', 'arg2', 'arg3'];
29 // Test call with args.
30 $callback($args[0], $args[1], $args[2]);
33 $callback(...$args);
54 Static method called with args: arg1, arg2, arg3
55 Static method called with args: arg1, arg2, arg3
H A Dlsb_022.phpt9 static function __callstatic($name, $args) {
17 static function __callstatic($name, $args) {
18 parent::__callstatic($name, $args);
19 call_user_func_array("parent::__callstatic", array($name, $args));
21 call_user_func_array("parent::foo", $args);
22 call_user_func_array(array("parent","foo"), $args);
/PHP-8.1/ext/opcache/
H A Dzend_accelerator_debug.c31 static void zend_accel_error_va_args(int type, const char *format, va_list args) in zend_accel_error_va_args() argument
79 vfprintf(fLog, format, args); in zend_accel_error_va_args()
101 va_list args; in zend_accel_error() local
102 va_start(args, format); in zend_accel_error()
103 zend_accel_error_va_args(type, format, args); in zend_accel_error()
104 va_end(args); in zend_accel_error()
109 va_list args; in zend_accel_error_noreturn() local
110 va_start(args, format); in zend_accel_error_noreturn()
112 zend_accel_error_va_args(type, format, args); in zend_accel_error_noreturn()
113 va_end(args); in zend_accel_error_noreturn()
/PHP-8.1/Zend/tests/function_arguments/
H A Dcall_with_trailing_comma_basic.phpt5 function foo(...$args) {
7 var_dump($args);
16 public function __construct(...$args) {
18 var_dump($args);
21 public function bar(...$args) {
23 var_dump($args);
26 public function __invoke(...$args) {
28 var_dump($args);
47 $bar = function(...$args) {
49 var_dump($args);
/PHP-8.1/ext/standard/tests/
H A Dforward_static_call_array.phpt9 $args = func_get_args();
10 echo "C " . join(',', $args) . " \n";
18 $args = func_get_args();
19 echo static::NAME, " " . join(',', $args) . " \n";
30 forward_static_call_array(array('A', 'test'), array('more', 'args'));
31 forward_static_call_array('test', array('other', 'args'));
40 B more,args
41 C other,args
/PHP-8.1/main/streams/
H A Duserspace.c357 4, args); in user_wrapper_opener()
435 2, args); in user_wrapper_opendir()
578 1, args); in php_userstreamop_write()
631 1, args); in php_userstreamop_read()
772 2, args); in php_userstreamop_seek()
1049 3, args); in php_userstreamop_set_option()
1099 1, args); in user_wrapper_unlink()
1143 2, args); in user_wrapper_rename()
1189 3, args); in user_wrapper_mkdir()
1235 2, args); in user_wrapper_rmdir()
[all …]
/PHP-8.1/Zend/tests/attributes/
H A D003_ast_nodes.phpt18 $args = $attr[0]->getArguments();
19 var_dump(count($args), $args[0][V1] === V1);
30 $args = $attr[0]->getArguments();
31 var_dump(count($args));
32 var_dump($args[0] === V1);
33 var_dump($args[1] === 3);
34 var_dump($args[2] === C1::class);
48 $args = $attr[0]->getArguments();
49 var_dump(count($args));
50 var_dump($args[0] === 'foo');
[all …]
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_out.c130 va_copy(argcpy, args); in phpdbg_vprint()
175 va_list args; in phpdbg_output_err_buf() local
186 va_end(args); in phpdbg_output_err_buf()
195 va_list args; in phpdbg_print() local
204 va_end(args); in phpdbg_print()
210 va_list args; in phpdbg_log_internal() local
215 va_start(args, fmt); in phpdbg_log_internal()
217 va_end(args); in phpdbg_log_internal()
226 va_list args; in phpdbg_out_internal() local
235 va_start(args, fmt); in phpdbg_out_internal()
[all …]
/PHP-8.1/ext/spl/tests/
H A DarrayObject_getIteratorClass_basic1.phpt8 $args = func_get_args();
9 echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
13 $args = func_get_args();
14 echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
19 $args = func_get_args();
20 echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
25 $args = func_get_args();
26 echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
31 $args = func_get_args();
32 echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
[all …]
/PHP-8.1/main/
H A Dphp_syslog.c89 va_list args; in php_syslog() local
100 va_start(args, format); in php_syslog()
101 vsyslog(priority, format, args); in php_syslog()
102 va_end(args); in php_syslog()
109 va_list args; in php_syslog() local
120 va_start(args, format); in php_syslog()
121 fbuf = zend_vstrpprintf(0, format, args); in php_syslog()
122 va_end(args); in php_syslog()
/PHP-8.1/ext/filter/tests/
H A Dbug76366.phpt11 #filter args
12 $args = [
19 $args['foo']['options'] = [];
22 $options = &$args['foo']['options'];
29 var_dump(filter_var_array($data, $args));
/PHP-8.1/ext/standard/tests/file/
H A Dbug22414.phpt10 $args = ' -n ';
13 passthru($php . $args . ' -r " echo \"HELLO\"; "');
20 $cmd = $php . $args . ' -r \"readfile(@getenv(\'\\\'\'TEST_PHP_EXECUTABLE\'\\\'\')); \"';
21 $cmd = $php . $args . ' -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ;
23 $cmd = $php . $args . ' -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"';
24 $cmd = $php . $args . ' -r " passthru(\''.$cmd.'\');" > '.$tmpfile ;
/PHP-8.1/Zend/tests/return_types/
H A D043.phpt7 public function __call($name, $args): string {}
8 public static function __callStatic($name, $args): self {}
14 public function __call($name, $args): int|float {}
15 public static function __callStatic($name, $args): ?object {}
21 public function __call($name, $args): mixed {}
22 public static function __callStatic($name, $args): mixed {}
/PHP-8.1/Zend/tests/arg_unpack/
H A Dmethod.phpt7 public function test(...$args) {
8 var_dump($args);
11 public static function test2(...$args) {
12 var_dump($args);
/PHP-8.1/ext/opcache/tests/opt/
H A Dverify_return_type.phpt63 ; (lines=1, args=0, vars=0, tmps=0)
69 ; (lines=3, args=0, vars=0, tmps=1)
79 ; (lines=3, args=0, vars=0, tmps=1)
89 ; (lines=2, args=1, vars=1, tmps=0)
96 ; (lines=3, args=0, vars=0, tmps=1)
104 ; (lines=1, args=0, vars=0, tmps=0)
110 ; (lines=3, args=0, vars=0, tmps=1)
118 ; (lines=2, args=1, vars=1, tmps=0)
125 ; (lines=6, args=1, vars=1, tmps=1)
136 ; (lines=1, args=0, vars=0, tmps=0)
[all …]
/PHP-8.1/ext/filter/
H A Dcallback_filter.c22 zval args[1]; in php_filter_callback() local
32 ZVAL_COPY(&args[0], value); in php_filter_callback()
33 status = call_user_function(NULL, NULL, option_array, &retval, 1, args); in php_filter_callback()
43 zval_ptr_dtor(&args[0]); in php_filter_callback()

Completed in 33 milliseconds

12345678910>>...21