/php-src/ext/standard/tests/array/ |
H A D | array_merge_variation7.phpt | 14 $arr2 = array(0, 1, 2, null => 'null', 0 => 'float'); 39 string(4) "null" 49 string(4) "null"
|
/php-src/ext/standard/tests/strings/ |
H A D | strncasecmp_variation7.phpt | 5 /* Test strncasecmp() function with null terminated strings and binary values passed to 'str1' & 's… 7 echo "*** Test strncasecmp() function: with null terminated strings and binary inputs ***\n"; 9 /* A binary function should not expect a null terminated string, and it should treat input as a raw… 19 *** Test strncasecmp() function: with null terminated strings and binary inputs ***
|
H A D | join_variation3.phpt | 27 // associative array, containing null/empty/boolean values as key/value 28 array(NULL => "NULL", null => "null", "NULL" => NULL, "null" => null), 31 array(1 => '', 2 => "", 3 => NULL, 4 => null, 5 => false, 6 => true), 32 array('' => 1, "" => 2, NULL => 3, null => 4, false => 5, true => 6), 82 string(12) "null], [], ["
|
/php-src/ext/mysqli/tests/ |
H A D | gh8978.phpt | 16 mysqli_ssl_set($mysql, 'x509.key', 'x509.pem', 'x509.ca', null, null); 19 mysqli_real_connect($mysql, $host, $user, $passwd, null, $port, null, MYSQLI_CLIENT_SSL);
|
/php-src/ext/pdo_pgsql/ |
H A D | pdo_pgsql.stub.php | 31 …, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {} 33 …ing $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {} 35 …leName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): array|false {} 37 …ing $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
|
/php-src/Zend/tests/ |
H A D | gc_048.phpt | 41 var_dump($cycleWithoutDestructorWeak->get() !== null); 43 var_dump($cycleWithoutDestructorWeak->get() !== null); 48 var_dump($cycleWithDestructorWeak->get() !== null); 50 var_dump($cycleWithDestructorWeak->get() !== null);
|
H A D | ctor_promotion_null_default.phpt | 2 Constructor promotion with null default, requires an explicitly nullable type 7 public function __construct(public int $x = null) {} 12 Fatal error: Cannot use null as default value for parameter $x of type int in %s on line %d
|
/php-src/ext/json/tests/ |
H A D | bug43941.phpt | 16 string(4) "null" 17 string(17) "[null,null,"abc"]"
|
/php-src/Zend/tests/return_types/ |
H A D | 002.phpt | 2 Returned null, expected array 6 return null; 12 Fatal error: Uncaught TypeError: test1(): Return value must be of type array, null returned in %s:%d
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_return_null_without_value.phpt | 2 Typed null return without value generates compile-time error 6 function test() : null { 14 Fatal error: A function with return type must return a value (did you mean "return null;" instead o…
|
H A D | typed_return_null_false_without_value.phpt | 2 Typed null|false return without value generates compile-time error 6 function test() : null|false { 14 Fatal error: A function with return type must return a value (did you mean "return null;" instead o…
|
/php-src/ext/spl/tests/ |
H A D | SplFixedArray_setSize_param_null.phpt | 2 SplFixedArray::setSize() with a null parameter 8 $fixed_array->setSize(null); 12 Deprecated: SplFixedArray::setSize(): Passing null to parameter #1 ($size) of type int is deprecate…
|
H A D | spl_autoload_007.phpt | 55 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad… 58 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr… 64 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static metho… 72 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad… 80 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr… 96 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, non-static metho… 105 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, class MyAutoLoad… 114 spl_autoload_register(): Argument #1 ($callback) must be a valid callback or null, cannot access pr…
|
/php-src/ext/dom/ |
H A D | php_dom.stub.php | 363 …clusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null): str… 474 …nction createDocument(?string $namespace = null, string $qualifiedName = "", ?DOMDocumentType $doc… 590 public mixed $schemaTypeInfo = null; 608 public mixed $schemaTypeInfo = null; 957 public ?string $actualEncoding = null; 963 public ?string $encoding = null; 969 public ?string $version = null; 1017 public function registerPhpFunctions(string|array|null $restrict = null): void {} 1211 …clusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null): str… 1648 …ction evaluate(string $expression, ?Node $contextNode = null, bool $registerNodeNS = true): null|b… [all …]
|
/php-src/ext/pdo/tests/ |
H A D | debug_emulated_prepares.phpt | 29 $stmt = $db->prepare('SELECT :bool, :int, :string, :null'); 33 $stmt->bindValue(':null', null, PDO::PARAM_NULL); 44 SQL: [34] SELECT :bool, :int, :string, :null 62 Key: Name: [5] :null 64 name=[5] ":null"
|
/php-src/ext/openssl/tests/ |
H A D | openssl_csr_sign_with_serial_hex.phpt | 29 var_dump($cert1 = openssl_csr_sign($csr, null, $privkey, 365, $args, 1234567)); 30 var_dump($cert2 = openssl_csr_sign($csr, null, $privkey, 365, $args, serial_hex: 'DEADBEEF')); 31 var_dump($cert3 = openssl_csr_sign($csr, null, $privkey, 365, $args, 10, 'DEADBEEFDEADBEEFDEADBEEFD… 33 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, 'DEADBEEG')); 34 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, '0xDEADBEEF')); 35 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, str_repeat('FF', 500)));
|
/php-src/ext/reflection/tests/ |
H A D | bug77772.phpt | 2 Bug #77772: ReflectionClass::getMethods(null) doesn't work 12 foreach ($rc->getMethods(null) as $method) { 15 foreach ($rc->getProperties(null) as $prop) {
|
/php-src/Zend/tests/type_declarations/intersection_types/ |
H A D | bug81268.phpt | 2 Bug #81268 Wrong message when using null as a default value for intersection types 7 public X&Y $y = null; 12 Fatal error: Cannot use null as default value for property Test::$y of type X&Y in %s on line %d
|
/php-src/Zend/tests/type_declarations/mixed/syntax/ |
H A D | mixed_parameter_error2.phpt | 2 Test that the nullable mixed parameter type is not valid even though a null default value 6 function foo(?mixed $a = null) 12 Fatal error: Type mixed cannot be marked as nullable since mixed already includes null in %s on lin…
|
/php-src/Zend/tests/type_declarations/iterable/ |
H A D | iterable_alias_redundancy_object_4.phpt | 6 function bar(): iterable|object|T|null { 7 return null; 12 Fatal error: Type Traversable|T|object|array|null contains both object and a class type, which is r…
|
H A D | iterable_alias_redundancy_object_5.phpt | 6 function bar(): T|object|iterable|null { 7 return null; 12 Fatal error: Type T|Traversable|object|array|null contains both object and a class type, which is r…
|
H A D | iterable_alias_redundancy_object_6.phpt | 6 function bar(): T|iterable|object|null { 7 return null; 12 Fatal error: Type T|Traversable|object|array|null contains both object and a class type, which is r…
|
H A D | iterable_alias_redundancy_object_3.phpt | 6 function bar(): object|iterable|T|null { 7 return null; 12 Fatal error: Type Traversable|T|object|array|null contains both object and a class type, which is r…
|
/php-src/ext/opcache/tests/opt/ |
H A D | assign_op_002.phpt | 2 …zation of ASSIGN_OP may lead to incorrect result (sub assign -> pre dec conversion for null values) 9 function foo(?int $a = null) { 14 var_dump(foo(null));
|
/php-src/ext/standard/tests/file/ |
H A D | disk_free_space_variation.phpt | 106 disk_free_space(): Argument #1 ($directory) must not contain any null bytes 107 diskfreespace(): Argument #1 ($directory) must not contain any null bytes 110 disk_free_space(): Argument #1 ($directory) must not contain any null bytes 111 diskfreespace(): Argument #1 ($directory) must not contain any null bytes 114 disk_free_space(): Argument #1 ($directory) must not contain any null bytes 115 diskfreespace(): Argument #1 ($directory) must not contain any null bytes 118 disk_free_space(): Argument #1 ($directory) must not contain any null bytes 119 diskfreespace(): Argument #1 ($directory) must not contain any null bytes
|