/php-src/Zend/tests/ |
H A D | methods-on-non-objects-usort.phpt | 2 usort() in combination with "Call to a member function method() on null" 9 $comparator= null; 24 string(43) "Call to a member function compare() on null" 26 string(43) "Call to a member function compare() on null" 28 string(43) "Call to a member function compare() on null" 30 string(43) "Call to a member function compare() on null"
|
H A D | object-null.phpt | 12 var_dump($b != null); 13 var_dump($b == null); 14 var_dump($b !== null); 15 var_dump($b === null);
|
/php-src/ext/gettext/tests/ |
H A D | bug53251.phpt | 2 Bug #53251 (bindtextdomain with null dir doesn't return old value) 11 var_dump(is_string(bindtextdomain('foo', null))); 13 var_dump(bindtextdomain('foo', null) === $dir); 15 var_dump(bind_textdomain_codeset('foo', null)); 17 var_dump(bind_textdomain_codeset('foo', null));
|
/php-src/ext/opcache/tests/jit/ |
H A D | assign_obj_001.phpt | 2 JIT ASSIGN_OBJ: Assign property on null 19 test1(null); 25 test2(null); 32 Attempt to assign property "x" on null 33 Attempt to assign property "x" on null
|
/php-src/ext/standard/tests/array/ |
H A D | array_map_variation14.phpt | 2 Test array_map() function : usage variations - null value for 'callback' argument 6 * Test array_map() by passing null values for $callback argument and testing whether shortest 10 echo "*** Testing array_map() : null value for 'callback' argument ***\n"; 21 /* calling array_map() with null callback */ 23 echo "-- with null --\n"; 24 var_dump( array_map(null, $arr1, $arr2, $arr3) ); 50 *** Testing array_map() : null value for 'callback' argument *** 51 -- with null -- 121 array_map(): Argument #1 ($callback) must be a valid callback or null, function "" not found or inv… 123 array_map(): Argument #1 ($callback) must be a valid callback or null, array callback must have exa…
|
H A D | array_diff_key_variation7.phpt | 2 Test array_diff_key() function : usage variation - Passing null,unset and undefined variable indexe… 15 'null indexed' => array(NULL => 'null 1', null => 'null 2'), 30 --null indexed--
|
H A D | array_filter_variation7.phpt | 11 $input = array(0, 1, -1, 10, 100, 1000, 'Hello', null); 17 // anonymous callback function with null argument 18 echo "Anonymous callback function with null argument\n"; 21 // anonymous callback function with argument and null statement 22 echo "Anonymous callback function with regular argument and null statement\n"; 40 Anonymous callback function with null argument 59 Anonymous callback function with regular argument and null statement
|
H A D | array_shift_variation3.phpt | 31 // null data 32 /*4*/ 'null uppercase' => array( 33 NULL => 'null 1', 36 /*5*/ 'null lowercase' => array( 37 null => 'null 2', 103 -- Iteration 2 : null uppercase data -- 104 string(6) "null 1" 108 -- Iteration 3 : null lowercase data -- 109 string(6) "null 2"
|
H A D | array_values_variation3.phpt | 32 // null data 33 /*4*/ 'null uppercase' => array( 34 NULL => 'null 1', 37 /*5*/ 'null lowercase' => array( 38 null => 'null 2', 103 -- Iteration 2: null uppercase data -- 106 string(6) "null 1" 109 -- Iteration 3: null lowercase data -- 112 string(6) "null 2"
|
H A D | array_change_key_case_variation3.phpt | 32 // null data 33 /*3*/ 'null uppercase' => array( 34 NULL => 'null 1', 36 'null lowercase' => array( 37 null => 'null 2', 101 -- Iteration 2 : null uppercase data -- 104 string(6) "null 1" 107 -- Iteration 3 : null lowercase data -- 110 string(6) "null 2"
|
/php-src/Zend/tests/nullsafe_operator/ |
H A D | 027.phpt | 17 $null = null; 18 takes_ref(returns_ref($null?->null()));
|
H A D | 028.phpt | 12 $null = null; 13 return returns_ref($null?->null);
|
/php-src/Zend/ |
H A D | zend_exceptions.stub.php | 41 private ?Throwable $previous = null; 45 public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {} 76 ?string $filename = null, 77 ?int $line = null, 78 ?Throwable $previous = null 100 private ?Throwable $previous = null; 106 public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {}
|
/php-src/ext/mbstring/tests/ |
H A D | mb_substitute_character_variation_strict_types.phpt | 63 // null data 65 'lowercase null' => null, 120 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, float given 122 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, float given 124 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, float given 126 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, float given 128 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, float given 130 …itute_character(): Argument #1 ($substitute_character) must be of type string|int|null, array given 139 --lowercase null-- 142 …titute_character(): Argument #1 ($substitute_character) must be of type string|int|null, true given [all …]
|
/php-src/ext/opcache/tests/ |
H A D | jmp_elim_004.phpt | 15 $null = null; 16 var_dump($null ?? 3); 17 var_dump($null ?? new stdClass);
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.stub.php | 69 public function __construct(int $flags = FILEINFO_NONE, ?string $magic_database = null) {} 76 …public function file(string $filename, int $flags = FILEINFO_NONE, $context = null): string|false … 83 …public function buffer(string $string, int $flags = FILEINFO_NONE, $context = null): string|false … 93 function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null): finfo|false {} 103 function finfo_file(finfo $finfo, string $filename, int $flags = FILEINFO_NONE, $context = null): s… 109 function finfo_buffer(finfo $finfo, string $string, int $flags = FILEINFO_NONE, $context = null): s…
|
/php-src/sapi/fpm/tests/ |
H A D | tester.inc | 131 * @var string|null 138 * @var Response|null 401 ?bool $debug = null, 440 * @return null|array 445 array|string|null $expectedPattern = null, 827 * @param string|null $scriptFilename = null 828 * @param string|null $scriptName = null 829 * @param string|array|null $stdin = null 848 string|array|null $stdin = null, 1120 * @param int|null $pid [all …]
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_110.phpt | 2 Test typed properties allow null 6 public null $value; 10 $foo->value = null; 20 Cannot assign int to property Foo::$value of type null
|
/php-src/ext/exif/ |
H A D | exif.stub.php | 19 function exif_read_data($file, ?string $required_sections = null, bool $as_arrays = false, bool $re… 28 function exif_thumbnail($file, &$width = null, &$height = null, &$image_type = null): string|false …
|
/php-src/ext/zend_test/ |
H A D | test.stub.php | 51 public ?stdClass $classProp = null; 52 public stdClass|Iterator|null $classUnionProp = null; 193 function zend_test_nullable_array_return(): null|array {} 200 function zend_test_deprecated(mixed $arg = null): void {} 221 function zend_string_or_object_or_null(object|string|null $param): object|string|null {} 227 function zend_string_or_stdclass_or_null($param): stdClass|string|null {} 231 function zend_number_or_string_or_null(string|int|float|null $param): string|int|float|null {} 233 function zend_iterable(iterable $arg1, ?iterable $arg2 = null): void {} 264 function zend_test_crash(?string $message = null): void {}
|
/php-src/ext/intl/ |
H A D | php_intl.stub.php | 177 function intlcal_create_instance($timezone = null, ?string $locale = null): ?IntlCalendar {} 210 function intlcal_clear(IntlCalendar $calendar, ?int $field = null): true {} 250 function intlcal_is_weekend(IntlCalendar $calendar, ?float $timestamp = null): bool {} 336 $timezone = null, 337 IntlCalendar|int|null $calendar = null, 338 ?string $pattern = null 375 function datefmt_format_object($datetime, $format = null, ?string $locale = null): string|false {} 432 function grapheme_strlen(string $string): int|false|null {} 478 function locale_get_keywords(string $locale): array|false|null {} 569 function intltz_create_enumeration($countryOrRawOffset = null): IntlIterator|false {} [all …]
|
/php-src/ext/hash/tests/ |
H A D | hash_equals.phpt | 28 fn() => hash_equals(null, ""), 29 fn() => hash_equals(null, 123), 30 fn() => hash_equals(null, null), 45 [TypeError] hash_equals(): Argument #1 ($known_string) must be of type string, null given 46 [TypeError] hash_equals(): Argument #1 ($known_string) must be of type string, null given 47 [TypeError] hash_equals(): Argument #1 ($known_string) must be of type string, null given
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_execute_bind.phpt | 22 $stmt = null; 28 $stmt = null; 37 $stmt = null; 46 $stmt = null; 55 $stmt = null; 64 $stmt = null; 73 $stmt = null; 82 $stmt = null; 90 $stmt = null; 96 $stmt = null; [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | fnmatch_variation.phpt | 188 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 190 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 270 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 271 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 272 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 273 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 274 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 275 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 284 fnmatch(): Argument #1 ($pattern) must not contain any null bytes 285 fnmatch(): Argument #1 ($pattern) must not contain any null bytes [all …]
|
/php-src/Zend/tests/type_declarations/iterable/ |
H A D | or_null.phpt | 2 Test "or null"/"or be null" in type-checking errors for userland functions with iterable 6 …d `zend_verify_missing_return_type` functions which produces an "or null"/"or be null" part in its… 35 TypeError: iterableF(): Argument #1 ($param) must be of type Traversable|array|null, int given, cal… 39 TypeError: returnIterable(): Return value must be of type Traversable|array|null, int returned in %… 43 TypeError: returnMissingIterable(): Return value must be of type Traversable|array|null, none retur…
|