/php-src/ext/soap/tests/interop/Round4/GroupH/ |
H A D | round4_groupH_simple_doclit.inc | 5 …return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault"… 9 …return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFau… 13 …return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleF… 18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param1… 20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2… 22 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleF… 28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1… 30 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3… 32 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2… 38 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param2… [all …]
|
H A D | round4_groupH_simple_rpcenc.inc | 5 …return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault"… 9 …return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFau… 13 …return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleF… 18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $string, "Simp… 20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $floats, "Simp… 22 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleF… 28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $string, "Simp… 32 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $float, "Simpl… 38 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $param2, "Simp… 46 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $enum, "Simple… [all …]
|
/php-src/Zend/tests/ |
H A D | 033.phpt | 30 Warning: Trying to access array offset on null in %s on line %d 32 Warning: Trying to access array offset on null in %s on line %d 34 Warning: Trying to access array offset on null in %s on line %d 36 Warning: Trying to access array offset on null in %s on line %d 38 Warning: Trying to access array offset on null in %s on line %d 42 Warning: Trying to access array offset on null in %s on line %d 44 Warning: Trying to access array offset on null in %s on line %d 46 Warning: Trying to access array offset on null in %s on line %d 48 Warning: Trying to access array offset on null in %s on line %d 65 Attempt to assign property "foo" on null [all …]
|
H A D | constant_expressions_coalesce.phpt | 2 Constant expressions with null coalescing operator ?? 8 const T_1 = null ?? A[1]['undefined']['index'] ?? 1; 9 const T_2 = null ?? A['undefined']['index'] ?? 2; 10 const T_3 = null ?? A[1][0][2] ?? 3; 12 const T_5 = null ?? __LINE__; 22 var_dump((function(){ static $var = null ?? A[1]['undefined']['index'] ?? 1; return $var; })()); 23 var_dump((function(){ static $var = null ?? A['undefined']['index'] ?? 2; return $var; })()); 24 var_dump((function(){ static $var = null ?? A[1][0][2] ?? 3; return $var; })()); 27 var_dump((new class { public $var = null ?? A[1]['undefined']['index'] ?? 1; })->var); 28 var_dump((new class { public $var = null ?? A['undefined']['index'] ?? 2; })->var); [all …]
|
H A D | null_to_non_nullable_special_func.phpt | 2 Test null arg behavior for special functions 6 $null = null; 7 var_dump(strlen($null)); 11 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in %s on …
|
/php-src/Zend/tests/prop_const_expr/ |
H A D | basic_nullsafe.phpt | 12 const A = (null)?->test; 15 const B = (null)?->test->test; 18 const C = (null)->test?->test; 21 const D = (null)?->test['test']; 24 const E = (null)['test']?->test; 27 const F = (null)?->{new Printer}; 30 const G = (null)?->test + (new Printer ? 1 : 0); 38 Warning: Attempt to read property "test" on null in %s on line %d 42 Warning: Trying to access array offset on null in %s on line %d
|
/php-src/ext/json/tests/ |
H A D | serialize.phpt | 47 'nil' => null, 65 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}} 66 {"data":["foo",1,2.3,false,null,[1,2,3],{}]} 67 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}} 69 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}} 70 ["foo",1,2.3,false,null,[1,2,3],{}] 71 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}} 73 ["foo",1,2.3,false,null,[1,2,3],{}] 74 ["foo",1,2.3,false,null,[1,2,3],{}] 75 ["foo",1,2.3,false,null,[1,2,3],{}] [all …]
|
/php-src/ext/session/ |
H A D | session.stub.php | 22 function session_name(?string $name = null): string|false {} 25 function session_module_name(?string $module = null): string|false {} 28 function session_save_path(?string $path = null): string|false {} 30 function session_id(?string $id = null): string|false {} 78 ?callable $create_sid = null, 79 ?callable $validate_sid = null, 80 ?callable $update_timestamp = null 84 function session_cache_limiter(?string $value = null): string|false {} 86 function session_cache_expire(?int $value = null): int|false {} 88 … $lifetime_or_options, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $…
|
/php-src/ext/pcre/ |
H A D | php_pcre.stub.php | 105 function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset… 108 function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $of… 115 …g|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {} 121 …g|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {} 127 …back, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} 130 …tern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} 139 function preg_quote(string $str, ?string $delimiter = null): string {}
|
/php-src/Zend/tests/type_declarations/ |
H A D | scalar_constant_defaults.phpt | 12 const NULL_VAL = null; 64 echo "Testing int with default null constant" . PHP_EOL; 71 echo "Testing int with null null constant" . PHP_EOL; 73 var_dump(int_val_default_null(null)); 78 echo "Testing nullable int with default null constant" . PHP_EOL; 81 echo "Testing nullable int with null null constant" . PHP_EOL; 82 var_dump(nullable_int_val_default_null(null)); 98 Testing int with default null constant 100 Testing int with null null constant 102 Testing nullable int with default null constant [all …]
|
/php-src/ext/xml/ |
H A D | xml.stub.php | 148 function xml_parser_create(?string $encoding = null): XMLParser {} 150 function xml_parser_create_ns(?string $encoding = null, string $separator = ":"): XMLParser {} 154 …_set_element_handler(XMLParser $parser, callable|string|null $start_handler, callable|string|null … 156 function xml_set_character_data_handler(XMLParser $parser, callable|string|null $handler): true {} 160 function xml_set_default_handler(XMLParser $parser, callable|string|null $handler): true {} 162 function xml_set_unparsed_entity_decl_handler(XMLParser $parser, callable|string|null $handler): tr… 164 function xml_set_notation_decl_handler(XMLParser $parser, callable|string|null $handler): true {} 166 function xml_set_external_entity_ref_handler(XMLParser $parser, callable|string|null $handler): tru… 168 function xml_set_start_namespace_decl_handler(XMLParser $parser, callable|string|null $handler): tr… 170 function xml_set_end_namespace_decl_handler(XMLParser $parser, callable|string|null $handler): true… [all …]
|
/php-src/ext/tidy/ |
H A D | tidy.stub.php | 814 …nction tidy_parse_string(string $string, array|string|null $config = null, ?string $encoding = nul… 820 …nction tidy_parse_file(string $filename, array|string|null $config = null, ?string $encoding = nul… 824 …ction tidy_repair_string(string $string, array|string|null $config = null, ?string $encoding = nul… 826 …ction tidy_repair_file(string $filename, array|string|null $config = null, ?string $encoding = nul… 866 public ?string $errorBuffer = null; 867 public ?string $value = null; 869 …ic function __construct(?string $filename = null, array|string|null $config = null, ?string $encod… 884 …lic function parseFile(string $filename, array|string|null $config = null, ?string $encoding = nul… 887 …lic function parseString(string $string, array|string|null $config = null, ?string $encoding = nul… 893 …ic function repairString(string $string, array|string|null $config = null, ?string $encoding = nul… [all …]
|
/php-src/ext/ldap/ |
H A D | ldap.stub.php | 632 function ldap_connect(?string $uri = null, int $port = 389): LDAP\Connection|false {} 704 …function ldap_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool … 708 function ldap_delete(LDAP\Connection $ldap, string $dn, ?array $controls = null): bool {} 714 …function ldap_mod_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): b… 721 …function ldap_modify(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bo… 725 …function ldap_mod_del(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): b… 743 function ldap_get_option(LDAP\Connection $ldap, int $option, &$value = null): bool {} 767 …sult $result, &$error_code, &$matched_dn = null, &$error_message = null, &$referrals = null, &$con… 793 …request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = UNKNOWN, &$r… 798 …$request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$res… [all …]
|
/php-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | pdo_sqlite_createaggregate_arg_error.phpt | 19 $db->createAggregate(null, [new TrampolineTest(), 'step'], null, 1); 25 $db->createAggregate(null, null, [new TrampolineTest(), 'step'], 1); 31 $db->createAggregate(null, [new TrampolineTest(), 'step'], [new TrampolineTest(), 'step'], 1); 37 $db->createAggregate('S', null, [new TrampolineTest(), 'finalize'], 1); 43 $db->createAggregate('S', [new TrampolineTest(), 'step'], null, 1); 49 …db->createAggregate('S', [new TrampolineTest(), 'step'], [new TrampolineTest(), 'finalize'], null); 57 PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 58 PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 59 PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given 62 PdoSqlite::createAggregate(): Argument #4 ($numArgs) must be of type int, null given
|
/php-src/ext/spl/tests/ |
H A D | bug79393.phpt | 12 var_dump($foo[0] ?? null); 13 var_dump($foo[1] ?? null); 14 var_dump($foo[2] ?? null); 15 var_dump($foo[3] ?? null); 16 var_dump($foo[4] ?? null); 17 var_dump($foo[5] ?? null);
|
/php-src/ext/odbc/ |
H A D | odbc.stub.php | 355 function odbc_fetch_object($statement, ?int $row = null): stdClass|false {} 358 function odbc_fetch_array($statement, ?int $row = null): array|false {} 365 function odbc_fetch_into($statement, &$array, ?int $row = null): int|false {} 367 function odbc_fetch_row(Odbc\Result $statement, ?int $row = null): bool {} 403 function odbc_autocommit(Odbc\Connection $odbc, ?bool $enable = null): int|bool {} 409 function odbc_error(?Odbc\Connection $odbc = null): string {} 411 function odbc_errormsg(?Odbc\Connection $odbc = null): string {} 415 …c\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?strin… 417 …c\Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?strin… 424 …Connection $odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?str… [all …]
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 104 function date(string $format, ?int $timestamp = null): string {} 109 function gmdate(string $format, ?int $timestamp = null): string {} 112 int $hour, ?int $minute = null, ?int $second = null, 113 ?int $month = null, ?int $day = null, ?int $year = null): int|false {} 116 int $hour, ?int $minute = null, ?int $second = null, 117 ?int $month = null, ?int $day = null, ?int $year = null): int|false {} 145 function getdate(?int $timestamp = null): array {} 267 ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, 268 ?float $utcOffset = null): string|int|float|false {} 276 ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, [all …]
|
/php-src/Zend/tests/type_declarations/dnf_types/ |
H A D | dnf_intersection_and_null.phpt | 2 Union of null and intersection type 13 public (X&Y)|null $prop1; 14 public null|(X&Y) $prop2; 16 public function foo1((X&Y)|null $v): (X&Y)|null { 20 public function foo2(null|(X&Y) $v): null|(X&Y) { 28 $n = null; 70 Test::foo1(): Argument #1 ($v) must be of type (X&Y)|null, C given, called in %s on line %d 71 Test::foo2(): Argument #1 ($v) must be of type (X&Y)|null, C given, called in %s on line %d 72 Cannot assign C to property Test::$prop1 of type (X&Y)|null 73 Cannot assign C to property Test::$prop2 of type (X&Y)|null
|
/php-src/ext/intl/locale/ |
H A D | locale.stub.php | 12 public const null DEFAULT_LOCALE = null; 63 public static function getKeywords(string $locale): array|false|null {} 69 …public static function getDisplayScript(string $locale, ?string $displayLocale = null): string|fal… 75 …public static function getDisplayRegion(string $locale, ?string $displayLocale = null): string|fal… 81 …public static function getDisplayName(string $locale, ?string $displayLocale = null): string|false… 87 …public static function getDisplayLanguage(string $locale, ?string $displayLocale = null): string|f… 93 …public static function getDisplayVariant(string $locale, ?string $displayLocale = null): string|fa… 123 …languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null): ?string {}
|
/php-src/ext/xmlwriter/ |
H A D | php_xmlwriter.stub.php | 35 function xmlwriter_write_element(XMLWriter $writer, string $name, ?string $content = null): bool {} 55 …iter $writer, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): boo… 61 …MLWriter $writer, string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool… 65 …riter $writer, string $name, ?string $publicId = null, ?string $systemId = null, ?string $content … 83 …t, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationDat… 187 public function writeElement(string $name, ?string $content = null): bool {} 193 …writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null): bool {} 247 …startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): boo… 265 …function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool… 277 …ction writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content … [all …]
|
/php-src/ext/openssl/tests/ |
H A D | CertificateGenerator.inc | 13 /** @var resource|null */ 16 /** @var resource|null */ 30 * @param int|null $keyLength 33 private static function generateKey($keyLength = null) 35 if (null === $keyLength) { 66 null, 89 $commonNameForCert, $file, $keyLength = null, $subjectAltName = null 97 if ($commonNameForCert !== null) { 143 $commonNameForCert, $file, $keyLength = null, $subjectAltName = null 151 openssl_pkey_export($this->lastKey, $keyText, null, $config); [all …]
|
/php-src/ext/mysqli/ |
H A D | mysqli.stub.php | 748 ?int $port = null, 749 ?string $socket = null 798 ?int $port = null, 915 ?int $port = null, 1371 ?string $hostname = null, 1372 ?string $username = null, 1374 ?string $database = null, 1375 ?int $port = null, 1376 ?string $socket = null 1552 ?int $port = null, [all …]
|
/php-src/ext/mysqli/tests/test_setup/ |
H A D | test_helpers.inc | 4 static $host = null; 5 if ($host === null) { 11 static $port = null; 12 if ($port === null) { 18 static $user = null; 19 if ($user === null) { 32 static $db = null; 33 if ($db === null) { 39 static $engine = null; 56 return null; [all …]
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | bug43831.phpt | 10 parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT => true)); 16 parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT => true)); 34 $bar = new PDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true)); 35 $baz = new MyPDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true));
|
/php-src/ext/phar/tests/zip/files/ |
H A D | corrupt3.php.inc | 4 $a->addFile('hi', null, 'hii', null, null, null, 'extralen1'); 7 $a->addFile('hi', null, 'hii');
|