/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | call_user_func_array_variation_001.phpt | 6 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 D | getopt_005.phpt | 4 --arg value --arg=value -avalue -a=value -a value 10 var_dump(getopt("a:", array("arg:"))); 14 ["arg"]=>
|
/PHP-8.0/main/ |
H A D | php_ticks.c | 23 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()
|
/PHP-8.0/ext/reflection/tests/ |
H A D | bug33389.phpt | 7 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 = 1 ] 53 Parameter #0 [ <optional> $arg = NULL ] 61 Parameter #0 [ <optional> $arg = false ] 77 Parameter #0 [ <optional> $arg = 1 ] [all …]
|
/PHP-8.0/ext/standard/ |
H A D | pack.c | 100 …result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xF… in php_pack_reverse_int32() 113 tmp.i = arg; in php_pack_reverse_int64() 245 int arg = 1; in PHP_FUNCTION() local 252 arg = -1; in PHP_FUNCTION() 272 arg = 1; in PHP_FUNCTION() 301 arg++; in PHP_FUNCTION() 763 arg = -1; in PHP_FUNCTION() 771 argb = arg; in PHP_FUNCTION() 801 arg = 1; in PHP_FUNCTION() 806 size = (arg > 0) ? (arg + (arg % 2)) / 2 : arg; in PHP_FUNCTION() [all …]
|
H A D | type.c | 23 zval *arg; in PHP_FUNCTION() local 27 Z_PARAM_ZVAL(arg) in PHP_FUNCTION() 42 zval *arg; in PHP_FUNCTION() local 46 Z_PARAM_ZVAL(arg) in PHP_FUNCTION() 242 zval *arg; in php_is_type() local 245 Z_PARAM_ZVAL(arg) in php_is_type() 282 zval *arg; in PHP_FUNCTION() local 285 Z_PARAM_ZVAL(arg) in PHP_FUNCTION() 288 RETURN_BOOL(Z_TYPE_P(arg) == IS_FALSE || Z_TYPE_P(arg) == IS_TRUE); in PHP_FUNCTION() 335 zval *arg; in PHP_FUNCTION() local [all …]
|
/PHP-8.0/Zend/tests/named_params/ |
H A D | undef_var.phpt | 2 Passing undefined variabled 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.0/Zend/tests/ |
H A D | bug70332.phpt | 5 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 D | bug76047.phpt | 15 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 D | objects_004.phpt | 9 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 D | objects_003.phpt | 9 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 D | objects_008.phpt | 9 function foo(Test $arg) {} 13 function foo(Test $arg) {} 17 function foo(Test3 $arg) {} 22 Fatal error: Declaration of test3::foo(Test3 $arg) must be compatible with test::foo(Test $arg) in …
|
H A D | objects_006.phpt | 9 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 D | objects_007.phpt | 9 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 D | bug48770.phpt | 7 public function func($arg) { 13 public function func($arg) { 17 public function callFuncInParent($arg) { 18 call_user_func_array(array($this, 'parent::func'), array($arg)); 23 public function func($arg) {
|
H A D | trait_type_errors.phpt | 7 public function test1($arg): int { 8 return $arg; 10 public function test2(int $arg) { 12 public function test3(int $arg = 42) { 42 C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d 43 C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
|
H A D | bug50394.phpt | 14 $arg = 1; 15 $args = array( &$arg ); 18 call_user_func_array( array( $proxy, 'bar' ), array(&$arg) ); 19 var_dump($arg);
|
/PHP-8.0/ext/phar/phar/ |
H A D | clicommand.inc | 148 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.0/ext/mbstring/tests/ |
H A D | bug43994.phpt | 47 Without $regs arg: 49 With $regs arg: 54 Without $regs arg: 56 With $regs arg: 61 Without $regs arg: 63 With $regs arg: 70 With $regs arg: 77 With $regs arg: 84 With $regs arg: 91 With $regs arg: [all …]
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_cleanup.c | 13 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.0/ext/date/tests/ |
H A D | microtime_error.phpt | 18 echo "\n--> bad arg: "; 31 --> bad arg: NULL 34 --> bad arg: float(1.5) 37 --> bad arg: string(5) "hello" 40 --> bad arg: array(2) { 51 --> bad arg: object(stdClass)#%d (0) { 55 --> bad arg: int(1)
|
/PHP-8.0/ext/gmp/tests/ |
H A D | bug80560.phpt | 129 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.0/Zend/ |
H A D | zend_API.h | 429 #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0)) argument 430 #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size)) argument 1938 if (EXPECTED(Z_TYPE_P(arg) == IS_LONG || Z_TYPE_P(arg) == IS_DOUBLE)) { in zend_parse_arg_number() 1939 *dest = arg; in zend_parse_arg_number() 1951 *dest = Z_STR_P(arg); in zend_parse_arg_str() 2006 *dest = arg; in zend_parse_arg_iterable() 2022 *dest = arg; in zend_parse_arg_array() 2081 *dest = arg; in zend_parse_arg_object() 2129 *dest = arg; in zend_parse_arg_resource() 2159 UNEXPECTED(Z_TYPE_P(Z_REFVAL_P(arg)) == IS_NULL)))) ? NULL : arg; in zend_parse_arg_zval() [all …]
|
/PHP-8.0/ext/spl/tests/ |
H A D | spl_004.phpt | 12 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++);
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli_exception.c | 33 va_list arg; in php_mysqli_throw_sql_exception() local 36 va_start(arg, format); in php_mysqli_throw_sql_exception() 37 vspprintf(&message, 0, format, arg); in php_mysqli_throw_sql_exception() 38 va_end(arg); in php_mysqli_throw_sql_exception()
|