Home
last modified time | relevance | path

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

12345678910>>...54

/PHP-7.1/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]));
13 var_dump(empty($str[0]));
14 var_dump(empty($str[1]));
17 var_dump(empty($str[8]));
21 var_dump(empty($str['-1']));
24 var_dump(empty($str['0']));
25 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: ";
69 sub-key 'non_existent' is empty.
70 sub-key 1 is not empty: string(1) "o"
72 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
15 Warning: Cannot assign an empty string to a string offset in %s on line %d
18 Warning: Cannot assign an empty string to a string offset in %s on line %d
21 Warning: Cannot assign an empty string to a string offset in %s on line %d
24 Warning: Cannot assign an empty string to a string offset in %s on line %d
/PHP-7.1/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";
29 View::foo empty
30 View::bar empty
31 View::baz empty
H A Dbug66834.phpt56 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
57 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
58 var_dump($object->offsetexists('baz'), isset($object['baz']), empty($object['baz']));
59 var_dump($object->offsetexists('qux'), isset($object['qux']), empty($object['qux']));
63 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
64 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
65 var_dump($object->offsetexists('baz'), isset($object['baz']), empty($object['baz']));
66 var_dump($object->offsetexists('qux'), isset($object['qux']), empty($object['qux']));
70 var_dump($object->offsetExists('foo'), isset($object['foo']), empty($object['foo']));
71 var_dump($object->offsetExists('bar'), isset($object['bar']), empty($object['bar']));
[all …]
/PHP-7.1/ext/zip/tests/
H A Doo_properties.phpt2 ziparchive::properties isset()/empty() checks
21 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
23 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($…
28 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
38 empty(): 1
41 empty(): 0
46 empty(): 1
49 empty(): 1
52 empty(): 0
55 empty(): 0
[all …]
/PHP-7.1/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-7.1/ext/mbstring/tests/
H A Dbug43994.phpt44 Warning: mb_ereg(): empty pattern in %s on line %d
48 Warning: mb_ereg(): empty pattern in %s on line %d
56 Warning: mb_ereg(): empty pattern in %s on line %d
60 Warning: mb_ereg(): empty pattern in %s on line %d
68 Warning: mb_ereg(): empty pattern in %s on line %d
72 Warning: mb_ereg(): empty pattern in %s on line %d
80 Warning: mb_ereg(): empty pattern in %s on line %d
84 Warning: mb_ereg(): empty pattern in %s on line %d
92 Warning: mb_ereg(): empty pattern in %s on line %d
96 Warning: mb_ereg(): empty pattern in %s on line %d
[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-7.1/ext/zlib/tests/
H A Dgzfile_variation3.phpt20 'empty string DQ' => "",
21 'empty string SQ' => '',
33 Warning: gzfile(): Filename cannot be empty in %s on line %d
36 Warning: gzfile(): Filename cannot be empty in %s on line %d
39 Warning: gzfile(): Filename cannot be empty in %s on line %d
42 Warning: gzfile(): Filename cannot be empty in %s on line %d
45 Warning: gzfile(): Filename cannot be empty in %s on line %d
48 Warning: gzfile(): Filename cannot be empty in %s on line %d
H A Dreadgzfile_variation3.phpt20 'empty string DQ' => "",
21 'empty string SQ' => '',
33 Warning: readgzfile(): Filename cannot be empty in %s on line %d
36 Warning: readgzfile(): Filename cannot be empty in %s on line %d
39 Warning: readgzfile(): Filename cannot be empty in %s on line %d
42 Warning: readgzfile(): Filename cannot be empty in %s on line %d
45 Warning: readgzfile(): Filename cannot be empty in %s on line %d
48 Warning: readgzfile(): Filename cannot be empty in %s on line %d
H A Dgzopen_variation1.phpt77 'empty array' => array(),
92 // empty data
93 'empty string DQ' => "",
94 'empty string SQ' => '',
160 --empty array--
177 Error: 2 - gzopen(): Filename cannot be empty, %s(%d)
181 Error: 2 - gzopen(): Filename cannot be empty, %s(%d)
189 Error: 2 - gzopen(): Filename cannot be empty, %s(%d)
197 Error: 2 - gzopen(): Filename cannot be empty, %s(%d)
200 --empty string DQ--
[all …]
/PHP-7.1/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(dirname(__FILE__) . "/empty.html");
18 %r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Document is empty %s
/PHP-7.1/ext/session/tests/
H A Dsession_name_error.phpt102 Warning: session_name(): session.name cannot be a numeric or empty '0' in %s on line %d
108 Warning: session_name(): session.name cannot be a numeric or empty '1' in %s on line %d
156 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
162 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
168 Warning: session_name(): session.name cannot be a numeric or empty '1' in %s on line %d
174 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
186 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
192 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
198 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
221 Warning: session_name(): session.name cannot be a numeric or empty '' in %s on line %d
[all …]
/PHP-7.1/ext/standard/tests/array/
H A Darray_combine_error2.phpt2 Test array_combine() function : error conditions - empty array
13 // Testing array_combine by passing empty arrays to $keys and $values arguments
14 echo "\n-- Testing array_combine() function with empty arrays --\n";
17 // Testing array_combine by passing empty array to $keys
18 echo "\n-- Testing array_combine() function with empty array for \$keys argument --\n";
21 // Testing array_combine by passing empty array to $values
22 echo "\n-- Testing array_combine() function with empty array for \$values argument --\n";
34 -- Testing array_combine() function with empty arrays --
38 -- Testing array_combine() function with empty array for $keys argument --
43 -- 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',
/PHP-7.1/ext/standard/tests/streams/
H A Dbug64433_srv.inc1 if(!empty($_REQUEST["redir"])) {
6 if(!empty($_REQUEST["loc"])) {
10 if(!empty($_REQUEST["status"])) {
/PHP-7.1/ext/standard/tests/strings/
H A Dwordwrap_variation3.phpt59 // empty string
199 Warning: wordwrap(): Break string cannot be empty in %s on line %d
202 Warning: wordwrap(): Break string cannot be empty in %s on line %d
205 Warning: wordwrap(): Break string cannot be empty in %s on line %d
213 Warning: wordwrap(): Break string cannot be empty in %s on line %d
216 Warning: wordwrap(): Break string cannot be empty in %s on line %d
219 Warning: wordwrap(): Break string cannot be empty in %s on line %d
233 Warning: wordwrap(): Break string cannot be empty in %s on line %d
236 Warning: wordwrap(): Break string cannot be empty in %s on line %d
239 Warning: wordwrap(): Break string cannot be empty in %s on line %d
[all …]
/PHP-7.1/ext/standard/tests/file/
H A Dfile_variation2.phpt69 'empty array' => array(),
84 // empty data
85 'empty string DQ' => "",
86 'empty string SQ' => '',
147 --empty array--
164 Error: 2 - file(): Filename cannot be empty, %s(%d)
168 Error: 2 - file(): Filename cannot be empty, %s(%d)
176 Error: 2 - file(): Filename cannot be empty, %s(%d)
184 Error: 2 - file(): Filename cannot be empty, %s(%d)
187 --empty string DQ--
[all …]
H A Dparse_ini_file_variation4.phpt69 'empty array' => array(),
84 // empty data
85 'empty string DQ' => "",
86 'empty string SQ' => '',
147 --empty array--
164 Error: 2 - parse_ini_file(): Filename cannot be empty!, %s(%d)
168 Error: 2 - parse_ini_file(): Filename cannot be empty!, %s(%d)
176 Error: 2 - parse_ini_file(): Filename cannot be empty!, %s(%d)
184 Error: 2 - parse_ini_file(): Filename cannot be empty!, %s(%d)
187 --empty string DQ--
[all …]

Completed in 87 milliseconds

12345678910>>...54