/PHP-8.0/sapi/fuzzer/ |
H A D | fuzzer-mbstring.c | 33 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 D | fuzzer-unserializehash.c | 60 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.0/ext/session/ |
H A D | mod_user.c | 82 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.0/ext/standard/tests/general_functions/ |
H A D | bug40398.phpt | 18 $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.0/ext/standard/tests/class_object/ |
H A D | bug71442.phpt | 10 $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.0/Zend/tests/ |
H A D | call_user_func_array_prefer_ref.phpt | 9 $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 D | debug_backtrace_limit.phpt | 30 [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 D | indirect_call_string_001.phpt | 16 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 D | bug28377.phpt | 2 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 D | bug68475.phpt | 14 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 D | lsb_022.phpt | 9 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.0/Zend/tests/function_arguments/ |
H A D | call_with_trailing_comma_basic.phpt | 5 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.0/ext/standard/tests/ |
H A D | forward_static_call_array.phpt | 9 $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.0/Zend/tests/attributes/ |
H A D | 003_ast_nodes.phpt | 18 $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.0/main/streams/ |
H A D | userspace.c | 357 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.0/ext/spl/tests/ |
H A D | arrayObject_getIteratorClass_basic1.phpt | 8 $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.0/main/ |
H A D | php_syslog.c | 50 va_list args; in php_syslog() local 61 va_start(args, format); in php_syslog() 62 vsyslog(priority, format, args); in php_syslog() 63 va_end(args); in php_syslog() 73 va_list args; in php_syslog() local 84 va_start(args, format); in php_syslog() 85 zend_printf_to_smart_string(&fbuf, format, args); in php_syslog() 87 va_end(args); in php_syslog()
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | bug22414.phpt | 10 $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.0/Zend/tests/return_types/ |
H A D | 043.phpt | 7 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.0/ext/filter/tests/ |
H A D | bug76366.phpt | 13 #filter args 14 $args = [ 21 $args['foo']['options'] = []; 24 $options = &$args['foo']['options']; 31 var_dump(filter_var_array($data, $args));
|
/PHP-8.0/Zend/tests/arg_unpack/ |
H A D | method.phpt | 7 public function test(...$args) { 8 var_dump($args); 11 public static function test2(...$args) { 12 var_dump($args);
|
/PHP-8.0/ext/filter/ |
H A D | callback_filter.c | 22 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()
|
/PHP-8.0/ext/intl/msgformat/ |
H A D | msgformat_format.c | 32 static void msgfmt_do_format(MessageFormatter_object *mfo, zval *args, zval *return_value) in msgfmt_do_format() argument 37 umsg_format_helper(mfo, Z_ARRVAL_P(args), &formatted, &formatted_len); in msgfmt_do_format() 53 zval *args; in PHP_FUNCTION() local 59 &object, MessageFormatter_ce_ptr, &args ) == FAILURE ) in PHP_FUNCTION() 67 msgfmt_do_format(mfo, args, return_value); in PHP_FUNCTION() 74 zval *args; in PHP_FUNCTION() local 87 &slocale, &slocale_len, &pattern, &pattern_len, &args ) == FAILURE ) in PHP_FUNCTION() 144 msgfmt_do_format(mfo, args, return_value); in PHP_FUNCTION()
|
/PHP-8.0/Zend/tests/variadic/ |
H A D | basic.phpt | 6 function test1(... $args) { 7 var_dump($args); 14 function test2($arg1, $arg2, ...$args) { 15 var_dump($arg1, $arg2, $args);
|
H A D | legal_variadic_override.phpt | 15 public function test1(...$args) {} 16 public function test2(...$args) {} 17 public function test3(int ...$args) {} 18 public function test4(int|string ...$args) {} 19 public function test5(&...$args) {}
|