/php-src/Zend/tests/ |
H A D | empty_str_offset.phpt | 2 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 D | empty_with_expr.phpt | 2 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 D | bug44899_2.phpt | 2 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 D | bug44899.phpt | 2 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 D | bug60362.phpt | 35 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 D | bug50255.phpt | 2 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 D | bug71572.phpt | 2 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
|
/php-src/ext/spl/tests/ |
H A D | bug40036.phpt | 2 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 D | heap_009.phpt | 20 // 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-src/tests/lang/ |
H A D | empty_variation.phpt | 2 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-src/ext/zip/tests/ |
H A D | oo_properties.phpt | 2 ziparchive::properties isset()/empty() checks 18 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 20 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($… 25 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse… 35 empty(): 1 38 empty(): 0 43 empty(): 1 46 empty(): 1 49 empty(): 0 52 empty(): 0 [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMElement_insertAdjacentText.phpt | 45 echo "--- Normal cases starting from empty element ---\n"; 47 $empty = $dom->createElement('empty'); 48 $empty->insertAdjacentText("afterbegin", 'A'); 49 echo $dom->saveXML($empty), "\n"; 51 $AText = $empty->firstChild; 52 $empty->insertAdjacentText("afterbegin", 'B'); 53 echo $dom->saveXML($empty), "\n"; 78 --- Normal cases starting from empty element --- 79 <empty>A</empty> 80 <empty>BA</empty>
|
H A D | bug42082.phpt | 2 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 D | DOMDocument_loadHTMLfile_variation1.phpt | 2 Test DOMDocument::loadHTMLFile when an empty document is loaded 4 Verifies that an warning message is showed if an empty document is loaded 12 $result = $doc->loadHTMLFile(__DIR__ . "/empty.html"); 16 %r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Document is empty %s
|
/php-src/ext/dom/tests/modern/css_selectors/ |
H A D | pseudo_classes_empty.phpt | 2 CSS Selectors - Pseudo classes: empty 12 <div class="empty"> 25 <p>Element with nested empty element:</p> 31 test_helper($dom, '.empty > div:empty'); 35 --- Selector: .empty > div:empty ---
|
/php-src/Zend/tests/nullsafe_operator/ |
H A D | 011.phpt | 2 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));
|
/php-src/ext/xmlwriter/tests/ |
H A D | xmlwriter_toMemory_flush_combinations.phpt | 2 XMLWriter::toMemory() with combinations of empty flush and non-empty flush 9 var_dump($writer->flush(empty: false)); 11 var_dump($writer->flush(empty: false)); 13 var_dump($writer->flush(empty: false));
|
/php-src/ext/bcmath/tests/number/ |
H A D | properties_isset_empty_exists.phpt | 2 BcMath\Number properties isset, empty, exists 29 echo "========== empty ==========\n"; 32 'value' => empty($zero->value), 33 'scale' => empty($zero->scale), 36 'value' => empty($one->value), 37 'scale' => empty($one->scale), 40 'value' => empty($has_frac->value), 41 'scale' => empty($has_frac->scale), 88 ========== empty ==========
|
/php-src/ext/standard/tests/array/ |
H A D | array_combine_error2.phpt | 2 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 D | var_export2.phpt | 2 var_export() and empty array keys 5 $a = array ("\0" => 'null', "" => 'empty', "0" => 'nul'); 11 '' => 'empty',
|
/php-src/ext/random/tests/03_randomizer/ |
H A D | engine_unsafe_empty_string.phpt | 2 Random: Randomizer: Engines returning an empty string are detected and rejected 78 A random engine must return a non-empty string 79 A random engine must return a non-empty string 80 A random engine must return a non-empty string 81 A random engine must return a non-empty string 82 A random engine must return a non-empty string 83 A random engine must return a non-empty string 84 A random engine must return a non-empty string 85 A random engine must return a non-empty string 86 A random engine must return a non-empty string
|
/php-src/ext/mbstring/tests/ |
H A D | bug43994.phpt | 13 * Bug now seems to be fixed - error message is now generated when an 'empty' 46 mb_ereg(): Argument #1 ($pattern) must not be empty 48 mb_ereg(): Argument #1 ($pattern) must not be empty 53 mb_ereg(): Argument #1 ($pattern) must not be empty 55 mb_ereg(): Argument #1 ($pattern) must not be empty 60 mb_ereg(): Argument #1 ($pattern) must not be empty 62 mb_ereg(): Argument #1 ($pattern) must not be empty 67 mb_ereg(): Argument #1 ($pattern) must not be empty 69 mb_ereg(): Argument #1 ($pattern) must not be empty
|
/php-src/ext/standard/tests/strings/ |
H A D | levenshtein.phpt | 9 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-src/ext/opcache/tests/jit/ |
H A D | gh12747.phpt | 17 echo "empty():\n"; 18 var_dump(empty($container[new stdClass()])); 31 Cannot access offset of type stdClass in isset or empty 32 empty(): 33 Cannot access offset of type stdClass in isset or empty
|
/php-src/ext/xmlreader/tests/ |
H A D | virtual_properties2.phpt | 11 var_dump(empty($reader->attributeCount)); 15 var_dump(empty($reader->baseURI)); 19 var_dump(empty($reader->depth)); 23 var_dump(empty($reader->hasAttributes)); 27 var_dump(empty($reader->hasValue));
|