Home
last modified time | relevance | path

Searched refs:null (Results 26 – 50 of 1803) sorted by relevance

12345678910>>...73

/PHP-8.0/Zend/tests/
H A Dconstant_expressions_coalesce.phpt2 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 D033.phpt30 Warning: Trying to access array offset on value of type null in %s on line %d
32 Warning: Trying to access array offset on value of type null in %s on line %d
34 Warning: Trying to access array offset on value of type null in %s on line %d
36 Warning: Trying to access array offset on value of type null in %s on line %d
38 Warning: Trying to access array offset on value of type null in %s on line %d
42 Warning: Trying to access array offset on value of type null in %s on line %d
44 Warning: Trying to access array offset on value of type null in %s on line %d
46 Warning: Trying to access array offset on value of type null in %s on line %d
64 Warning: Attempt to read property "foo" on null in %s on line %d
65 Attempt to assign property "foo" on null
[all …]
H A Drequired_param_after_optional.phpt6 function test($testA = null, $testB = null, $testC) {}
7 function test2(Type $test2A = null, $test2B = null, $test2C) {}
8 function test3(Type $test3A = null, Type2 $test3B = null, $test3C) {}
H A Dbug73987_2.phpt11 function example($a, $b = null, $c = null) { }
15 function example($a, $b, $c = null) { }
20 …ror: Declaration of C::example($a, $b, $c = null) must be compatible with B::example($a, $b = null
H A Dbug73987.phpt10 public function example($a, $b = null, $c = null) { } // compatible with I::example
13 public function example($a, $b, $c = null) { } // compatible with I::example
18 …ror: Declaration of B::example($a, $b, $c = null) must be compatible with A::example($a, $b = null
/PHP-8.0/ext/soap/tests/interop/Round4/GroupH/
H A Dround4_groupH_simple_doclit.inc5 …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 Dround4_groupH_simple_rpcenc.inc5 …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-8.0/ext/json/tests/
H A Dserialize.phpt47 '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-8.0/ext/odbc/
H A Dodbc.stub.php58 function odbc_fetch_row($statement, ?int $row = null): bool {}
61 function odbc_result($statement, string|int $field): string|bool|null {}
120 function odbc_error($odbc = null): string {}
123 function odbc_errormsg($odbc = null): string {}
132 … odbc_tables($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?strin…
138 …odbc_columns($odbc, ?string $catalog = null, ?string $schema = null, ?string $table = null, ?strin…
157 …urecolumns($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure = null, ?str…
163 …nction odbc_procedures($odbc, ?string $catalog = null, ?string $schema = null, ?string $procedure …
/PHP-8.0/ext/mysqli/
H A Dmysqli.stub.php12 ?string $hostname = null,
13 ?string $username = null,
14 ?string $password = null,
15 ?string $database = null,
16 ?int $port = null,
17 ?string $socket = null
66 ?int $port = null,
67 ?string $socket = null
179 ?int $port = null,
543 ?int $port = null,
[all …]
/PHP-8.0/Zend/tests/type_declarations/
H A Dscalar_constant_defaults.phpt12 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-8.0/ext/spl/tests/
H A Dbug79393.phpt12 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-8.0/ext/xmlwriter/
H A Dphp_xmlwriter.stub.php35 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) {}
193 …ction writeElementNs(?string $prefix, string $name, ?string $namespace, ?string $content = null) {}
247 …on startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null) {}
265 …lic function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null) {}
277 …ction writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $content …
[all …]
/PHP-8.0/ext/filter/tests/
H A D055.phpt8 array("01-23-45-67-89-ab", null),
12 array("01-23-45-67-89-AB", null),
13 array("01-23-45-67-89-aB", null),
14 array("01:23:45:67:89:ab", null),
15 array("01:23:45:67:89:AB", null),
16 array("01:23:45:67:89:aB", null),
17 array("01:23:45-67:89:aB", null),
18 array("xx:23:45:67:89:aB", null),
19 array("0123.4567.89ab", null),
/PHP-8.0/ext/iconv/
H A Diconv.stub.php5 function iconv_strlen(string $string, ?string $encoding = null): int|false {}
7 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): …
9 function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null):…
11 function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {}
15 function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {}
17 function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array…
/PHP-8.0/ext/phar/tests/zip/files/
H A Dcorrupt3.php.inc4 $a->addFile('hi', null, 'hii', null, null, null, 'extralen1');
7 $a->addFile('hi', null, 'hii');
/PHP-8.0/ext/session/
H A Dsession.stub.php5 function session_name(?string $name = null): string|false {}
7 function session_module_name(?string $module = null): string|false {}
9 function session_save_path(?string $path = null): string|false {}
11 function session_id(?string $id = null): string|false {}
58 function session_cache_limiter(?string $value = null): string|false {}
60 function session_cache_expire(?int $value = null): int|false {}
62 … $lifetime_or_options, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $…
/PHP-8.0/ext/readline/
H A Dreadline.stub.php5 function readline(?string $prompt = null): string|false {}
11 function readline_info(?string $var_name = null, $value = null): mixed {}
21 function readline_read_history(?string $filename = null): bool {}
23 function readline_write_history(?string $filename = null): bool {}
/PHP-8.0/ext/soap/tests/bugs/
H A Dbug69462.phpt9 $client = new SoapClient(null, [ 'exceptions' => 1, 'location' => "", 'uri' => $namespace ]);
13 new SoapVar('value', XSD_STRING, null, null, null, $namespace)
15 SOAP_ENC_OBJECT, null, null, 'name', $namespace
/PHP-8.0/ext/openssl/
H A Dopenssl.stub.php57 …st|string $csr, OpenSSLCertificate|string|null $ca_certificate, $private_key, int $days, ?array $o…
60 …ay $distinguished_names, &$private_key, ?array $options = null, ?array $extra_attributes = null): …
66 function openssl_pkey_new(?array $options = null): OpenSSLAsymmetricKey|false {}
69 …_to_file($key, string $output_filename, ?string $passphrase = null, ?array $options = null): bool …
75 function openssl_pkey_export($key, &$output, ?string $passphrase = null, ?array $options = null): b…
96 function openssl_pkey_get_private($private_key, ?string $passphrase = null): OpenSSLAsymmetricKey|f…
102 function openssl_get_privatekey($private_key, ?string $passphrase = null): OpenSSLAsymmetricKey|fal…
108 …ilename = null, array $ca_info = [], ?string $untrusted_certificates_filename = null, ?string $con…
120 …ecrypt(string $input_filename, string $output_filename, $certificate, $private_key = null): bool {}
125 …s = null, array $ca_info = [], ?string $untrusted_certificates_filename = null, ?string $content =…
[all …]
/PHP-8.0/ext/pdo_sqlite/tests/
H A Dbug43831.phpt10 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-8.0/ext/intl/locale/
H A Dlocale.stub.php47 public static function getDisplayScript(string $locale, ?string $displayLocale = null) {}
53 public static function getDisplayRegion(string $locale, ?string $displayLocale = null) {}
59 public static function getDisplayName(string $locale, ?string $displayLocale = null) {}
65 public static function getDisplayLanguage(string $locale, ?string $displayLocale = null) {}
71 public static function getDisplayVariant(string $locale, ?string $displayLocale = null) {}
101 …p(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null) {}
/PHP-8.0/ext/fileinfo/
H A Dfileinfo.stub.php8 public function __construct(int $flags = FILEINFO_NONE, ?string $magic_database = null) {}
15 public function file(string $filename, int $flags = FILEINFO_NONE, $context = null) {}
22 public function buffer(string $string, int $flags = FILEINFO_NONE, $context = null) {}
32 function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null) {}
48 function finfo_file($finfo, string $filename, int $flags = FILEINFO_NONE, $context = null): string|…
54 function finfo_buffer($finfo, string $string, int $flags = FILEINFO_NONE, $context = null): string|…
/PHP-8.0/ext/intl/breakiterator/
H A Dbreakiterator.stub.php8 public static function createCharacterInstance(?string $locale = null) {}
14 public static function createLineInstance(?string $locale = null) {}
17 public static function createSentenceInstance(?string $locale = null) {}
20 public static function createTitleInstance(?string $locale = null) {}
23 public static function createWordInstance(?string $locale = null) {}
58 public function next(?int $offset = null) {}
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php164 function array_column(array $array, int|string|null $column_key, int|string|null $index_key = null)…
511 function headers_sent(&$filename = null, &$line = null): bool {}
531 function assert(mixed $assertion, Throwable|string|null $description = null): bool {}
647 function strip_tags(string $string, array|string|null $allowed_tags = null): string {}
733 function exec(string $command, &$output = null, &$result_code = null): string|false {}
923 function touch(string $filename, ?int $mtime = null, ?int $atime = null): bool {}
962 …(string $hostname, int $port = -1, &$error_code = null, &$error_message = null, ?float $timeout =
969 …(string $hostname, int $port = -1, &$error_code = null, &$error_message = null, ?float $timeout =
1201 function stream_context_create(?array $options = null, ?array $params = null) {}
1242 …address, &$error_code = null, &$error_message = null, ?float $timeout = null, int $flags = STREAM_…
[all …]

Completed in 67 milliseconds

12345678910>>...73