Home
last modified time | relevance | path

Searched refs:empty (Results 1 – 25 of 883) sorted by relevance

12345678910>>...36

/PHP-8.0/Zend/tests/
H A Dempty_str_offset.phpt2 Testing empty() with string offsets
6 print "- empty ---\n";
10 var_dump(empty($str[-1]));
11 var_dump(empty($str[-10]));
12 var_dump(empty($str[-4])); // 0
13 var_dump(empty($str[0]));
14 var_dump(empty($str[1]));
17 var_dump(empty($str[8]));
23 var_dump(empty($str['0']));
24 var_dump(empty($str['1']));
[all …]
H A Dempty_with_expr.phpt2 empty() with arbitrary expressions
9 var_dump(empty([]));
10 var_dump(empty([1, 2, 3]));
12 var_dump(empty(getEmptyArray()));
13 var_dump(empty(getNonEmptyArray()));
15 var_dump(empty([] + []));
16 var_dump(empty([1, 2, 3] + []));
18 var_dump(empty("string"));
19 var_dump(empty(""));
20 var_dump(empty(true));
[all …]
H A Dbug44899_2.phpt2 Bug #44899 (__isset usage changes behavior of empty()) - 2
21 var_dump(empty($this->_data[$var]));
32 echo (empty($myclass->foo)) ? 'empty' : 'not empty';
34 echo ($myclass->foo) ? 'not empty' : 'empty';
41 empty
43 empty
H A Dbug44899.phpt2 Bug #44899 (__isset usage changes behavior of empty())
27 echo (empty($myclass->foo)) ? 'empty' : 'not empty';
29 echo ($myclass->foo) ? 'not empty' : 'empty';
35 empty
38 empty
H A Dbug60362.phpt35 if (empty($arr['exists']['non_existent'])) {
41 if (empty($arr['exists'][1])) {
42 echo "sub-key 1 is empty.\n";
44 echo "sub-key 1 is not empty: ";
55 if (empty($arr['exists'][1][0])) {
56 echo "sub-sub-key 0 is empty.\n";
58 echo "sub-sub-key 0 is not empty: ";
70 sub-key 'non_existent' is empty.
71 sub-key 1 is not empty: string(1) "o"
73 sub-sub-key 'sub_sub' is empty.
[all …]
H A Dbug50255.phpt2 Bug #50255 (isset() and empty() silently casts array to object)
13 print "empty\n";
14 var_dump(empty($arr->foo));
15 var_dump(empty($arr->bar));
16 var_dump(empty($arr['foo']));
17 var_dump(empty($arr['bar']));
26 empty
H A Dbug71572.phpt2 Bug #71572: String offset assignment from an empty string inserts null byte
30 Cannot assign an empty string to a string offset
31 Cannot assign an empty string to a string offset
32 Cannot assign an empty string to a string offset
33 Cannot assign an empty string to a string offset
H A Dillegal_offset_unset_isset_empty.phpt2 Using unset(), isset(), empty() with an illegal array offset throws
18 empty($ary[[]]);
26 Illegal offset type in isset or empty
27 Illegal offset type in isset or empty
/PHP-8.0/ext/spl/tests/
H A Dbug40036.phpt2 Bug #40036 (empty() does not work correctly with ArrayObject when using ARRAY_AS_PROPS)
17 if (empty($view['foo']) || empty($view->foo)) {
18 echo "View::foo empty\n";
20 if (empty($view['bar']) || empty($view->bar)) {
21 echo "View::bar empty\n";
23 if (empty($view['baz']) || empty($view->baz)) {
24 echo "View::baz empty\n";
28 View::foo empty
29 View::bar empty
30 View::baz empty
H A Dheap_009.phpt20 // 1. SplMinHeap empty
24 // 2. SplMinHeap non-empty
29 // 3. SplMaxHeap empty
33 // 4. SplMaxHeap non-empty
38 // 5. SplPriorityQueue empty
42 // 6. SplPriorityQueue non-empty
/PHP-8.0/tests/lang/
H A Dempty_variation.phpt2 empty() on array elements
5 $a=array('0','empty'=>'0');
6 var_dump(empty($a['empty']));
7 var_dump(empty($a[0]));
9 var_dump(empty($b));
/PHP-8.0/ext/zip/tests/
H A Doo_properties.phpt2 ziparchive::properties isset()/empty() checks
20 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
22 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($…
27 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
37 empty(): 1
40 empty(): 0
45 empty(): 1
48 empty(): 1
51 empty(): 0
54 empty(): 0
[all …]
/PHP-8.0/ext/zlib/tests/
H A Dgzfile_variation3.phpt20 'empty string DQ' => "",
21 'empty string SQ' => '',
36 Path cannot be empty
37 Path cannot be empty
38 Path cannot be empty
39 Path cannot be empty
40 Path cannot be empty
41 Path cannot be empty
H A Dreadgzfile_variation3.phpt20 'empty string DQ' => "",
21 'empty string SQ' => '',
36 Path cannot be empty
37 Path cannot be empty
38 Path cannot be empty
39 Path cannot be empty
40 Path cannot be empty
41 Path cannot be empty
/PHP-8.0/ext/mbstring/tests/
H A Dbug43994.phpt48 mb_ereg(): Argument #1 ($pattern) must not be empty
50 mb_ereg(): Argument #1 ($pattern) must not be empty
55 mb_ereg(): Argument #1 ($pattern) must not be empty
57 mb_ereg(): Argument #1 ($pattern) must not be empty
62 mb_ereg(): Argument #1 ($pattern) must not be empty
64 mb_ereg(): Argument #1 ($pattern) must not be empty
69 mb_ereg(): Argument #1 ($pattern) must not be empty
71 mb_ereg(): Argument #1 ($pattern) must not be empty
76 mb_ereg(): Argument #1 ($pattern) must not be empty
78 mb_ereg(): Argument #1 ($pattern) must not be empty
[all …]
H A Dmb_convert_encoding_stateful.phpt10 echo "ISO-2022-JP empty segment\n";
19 echo "ISO-2022-KR empty segment\n";
21 echo "HZ empty segment\n";
25 ISO-2022-JP empty segment
34 ISO-2022-KR empty segment
36 HZ empty segment
/PHP-8.0/ext/dom/tests/
H A Dbug42082.phpt2 Bug #42082 (NodeList length zero should be empty)
13 var_dump(empty($nodes->length), empty($length));
16 var_dump($doc->firstChild->nodeValue, empty($doc->firstChild->nodeValue), isset($doc->firstChild->n…
17 var_dump(empty($doc->nodeType), empty($doc->firstChild->nodeType))
H A DDOMDocument_loadHTMLfile_variation1.phpt2 Test DOMDocument::loadHTMLFile when an empty document is loaded
4 Verifies that an warning message is showed if an empty document is loaded
14 $result = $doc->loadHTMLFile(__DIR__ . "/empty.html");
18 %r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Document is empty %s
/PHP-8.0/Zend/tests/nullsafe_operator/
H A D011.phpt2 Test isset and empty on nullsafe property
17 var_dump(empty($foo?->bar));
20 var_dump(empty($foo?->bar->baz));
25 var_dump(empty($foo?->bar));
28 var_dump(empty($foo?->bar->baz));
33 var_dump(empty($foo?->bar->baz));
37 var_dump(empty($foo?->bar->baz));
H A D030.phpt13 var_dump(empty($null?->method()));
15 var_dump(empty($test?->method(false)));
16 var_dump(empty($test?->method(42)));
/PHP-8.0/ext/standard/tests/array/
H A Darray_combine_error2.phpt2 Test array_combine() function : error conditions - empty array
7 // Testing array_combine by passing empty arrays to $keys and $values arguments
8 echo "\n-- Testing array_combine() function with empty arrays --\n";
11 // Testing array_combine by passing empty array to $keys
12 echo "\n-- Testing array_combine() function with empty array for \$keys argument --\n";
19 // Testing array_combine by passing empty array to $values
20 echo "\n-- Testing array_combine() function with empty array for \$values argument --\n";
39 -- Testing array_combine() function with empty arrays --
43 -- Testing array_combine() function with empty array for $keys argument --
45 -- Testing array_combine() function with empty array for $values argument --
H A Dvar_export2.phpt2 var_export() and empty array keys
5 $a = array ("\0" => 'null', "" => 'empty', "0" => 'nul');
11 '' => 'empty',
H A Darray_multisort_variation11.phpt2 Test array_multisort() function : usage variation - testing with empty array
5 echo "*** Testing array_multisort() : Testing with empty array ***\n";
11 *** Testing array_multisort() : Testing with empty array ***
/PHP-8.0/ext/standard/tests/strings/
H A Dlevenshtein.phpt9 echo '--- First string empty ---' . \PHP_EOL;
11 echo '--- Second string empty ---' . \PHP_EOL;
13 echo '--- Both empty ---' . \PHP_EOL;
41 --- First string empty ---
43 --- Second string empty ---
45 --- Both empty ---
/PHP-8.0/ext/standard/tests/streams/
H A Dbug64433_srv.inc1 if(!empty($_REQUEST["redir"])) {
6 if(!empty($_REQUEST["loc"])) {
10 if(!empty($_REQUEST["status"])) {

Completed in 20 milliseconds

12345678910>>...36