Home
last modified time | relevance | path

Searched refs:null (Results 76 – 100 of 2061) sorted by relevance

12345678910>>...83

/php-src/Zend/tests/
H A Dmethods-on-non-objects-usort.phpt2 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 Dobject-null.phpt12 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 Dbug53251.phpt2 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 Dassign_obj_001.phpt2 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 Darray_map_variation14.phpt2 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 Darray_diff_key_variation7.phpt2 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 Darray_filter_variation7.phpt11 $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 Darray_shift_variation3.phpt31 // 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 Darray_values_variation3.phpt32 // 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 Darray_change_key_case_variation3.phpt32 // 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 D027.phpt17 $null = null;
18 takes_ref(returns_ref($null?->null()));
H A D028.phpt12 $null = null;
13 return returns_ref($null?->null);
/php-src/Zend/
H A Dzend_exceptions.stub.php41 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 Dmb_substitute_character_variation_strict_types.phpt63 // 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 Djmp_elim_004.phpt15 $null = null;
16 var_dump($null ?? 3);
17 var_dump($null ?? new stdClass);
/php-src/ext/fileinfo/
H A Dfileinfo.stub.php69 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 Dtester.inc131 * @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 Dtyped_properties_110.phpt2 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 Dexif.stub.php19 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 Dtest.stub.php51 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 Dphp_intl.stub.php177 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 Dhash_equals.phpt28 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 Dmysqli_stmt_execute_bind.phpt22 $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 Dfnmatch_variation.phpt188 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 Dor_null.phpt2 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…

Completed in 89 milliseconds

12345678910>>...83