Home
last modified time | relevance | path

Searched refs:empty (Results 26 – 50 of 918) sorted by relevance

12345678910>>...37

/PHP-8.2/Zend/tests/nullsafe_operator/
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.2/ext/standard/tests/dir/
H A Dreaddir_variation2.phpt2 Test readdir() function : usage variations - empty directories
6 * Pass readdir() a directory handle pointing to an empty directory to test behaviour
15 echo "\n-- Pass an empty directory to readdir() --\n";
39 -- Pass an empty directory to readdir() --
H A Dreaddir_variation2-win32-mb.phpt2 Test readdir() function : usage variations - empty directories
12 * Pass readdir() a directory handle pointing to an empty directory to test behaviour
21 echo "\n-- Pass an empty directory to readdir() --\n";
45 -- Pass an empty directory to readdir() --
/PHP-8.2/ext/standard/tests/strings/
H A Dstrrpos_variation7.phpt2 Test strrpos() function : usage variations - empty heredoc string for 'haystack' argument
5 /* Test strrpos() function by passing empty heredoc string for haystack
10 echo "-- With empty heredoc string --\n";
25 -- With empty heredoc string --
H A Dstrtr_empty_search_string.phpt2 strtr() trying to replace an empty string
11 Warning: strtr(): Ignoring replacement of empty string in %s on line %d
14 Warning: strtr(): Ignoring replacement of empty string in %s on line %d
H A Dstrpbrk_error.phpt7 echo "-- Testing strpbrk() function with empty second argument --\n";
16 -- Testing strpbrk() function with empty second argument --
17 strpbrk(): Argument #2 ($characters) must be a non-empty string
/PHP-8.2/ext/standard/tests/network/
H A Dbug73594a.phpt13 // skip empty and header lines
16 if (empty($out)) die("skip local resolver does not return authority records");
23 var_dump(!empty($res) && empty($auth));
H A Dbug73594.phpt13 // skip empty and header lines
16 if (empty($out)) die("skip local resolver does not return additional records");
24 var_dump(!empty($res) && empty($additional));
/PHP-8.2/ext/standard/tests/array/
H A Darray_key_exists_variation8.phpt51 // empty data
52 /*5*/ 'empty double quotes' => array(
55 'empty single quotes' => array(
113 -- $key arguments are empty double quotes data:
115 -- $key arguments are empty single quotes data:
142 -- $key arguments are empty double quotes data:
144 -- $key arguments are empty single quotes data:
171 -- $key arguments are empty double quotes data:
173 -- $key arguments are empty single quotes data:
242 -- Iteration 6: empty double quotes data --
[all …]
/PHP-8.2/ext/spl/tests/
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 …]
H A Dbug61347.phpt12 var_dump(empty($b['b'])); //true
13 var_dump(empty($b[37])); //true
22 var_dump(empty($b['b'])); //true
23 var_dump(empty($b[37])); //true
H A Dfixedarray_003.phpt128 echo 'empty()', \PHP_EOL;
129 var_dump(empty($o[false]));
130 var_dump(empty($o[true]));
131 var_dump(empty($o[2.5]));
134 var_dump(empty($o[[]]));
144 var_dump(empty($o[$r]));
149 var_dump(empty($o['3']));
152 var_dump(empty($o['3.5']));
157 var_dump(empty($o['03']));
162 var_dump(empty($o[' 3']));
[all …]
/PHP-8.2/ext/pdo/tests/
H A Dbug_60665.phpt2 PDO Common: Bug #60665 (call to empty() on NULL result using PDO::FETCH_LAZY returns false)
26 empty($row->null_value),
27 empty($row->zero),
28 !empty($row->one),
29 empty($row->missing),
/PHP-8.2/ext/standard/tests/file/
H A Dfgetcsv_error_conditions.phpt30 echo 'fgetcsv() with delimiter as empty string' . \PHP_EOL;
37 echo 'fgetcsv() with enclosure as empty string' . \PHP_EOL;
44 echo 'fgetcsv() with delimiter & enclosure as empty string' . \PHP_EOL;
56 fgetcsv() with delimiter as empty string
58 fgetcsv() with enclosure as empty string
60 fgetcsv() with delimiter & enclosure as empty string
H A Dfile_put_contents_variation2.phpt66 'empty array' => array(),
81 // empty data
82 'empty string DQ' => "",
83 'empty string SQ' => '',
127 --empty array--
149 --empty string DQ--
151 --empty string SQ--
/PHP-8.2/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_empty_filename.phpt2 PDO_sqlite: Testing empty filename
8 // create with empty filename
13 // create with empty URI
/PHP-8.2/ext/xmlwriter/tests/
H A D012.phpt20 xmlwriter_start_element($xw, 'empty');
23 // Force to write and empty the buffer
33 <empty></empty>
H A DOO_011.phpt21 $xw->startElement('empty');
24 // Force to write and empty the buffer
34 <empty></empty>
/PHP-8.2/ext/zip/tests/
H A Dbug40228-mb.phpt2 Bug #40228 (extractTo does not create recursive empty path)
12 if (is_dir($dest . '/test/empty')) {
14 rmdir($dest . '/test/empty');
H A Dbug40228.phpt2 Bug #40228 (extractTo does not create recursive empty path)
12 if (is_dir($dest . '/test/empty')) {
14 rmdir($dest . '/test/empty');
/PHP-8.2/Zend/tests/
H A Dbug24436.phpt2 Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
9 if (empty($this->test[0][0])) { print "test1\n";}
11 if (empty($this->test)) { print "test1\n";}
/PHP-8.2/ext/oci8/tests/
H A Darray_bind_013.phpt2 oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array
33 Warning: oci_bind_array_by_name(): You must provide max length value for empty arrays in %s on line…
36 Warning: oci_bind_array_by_name(): You must provide max length value for empty arrays in %s on line…
39 Warning: oci_bind_array_by_name(): You must provide max length value for empty arrays in %s on line…
/PHP-8.2/ext/filter/tests/
H A Dbug52209.phpt7 /* This test makes no sense on windows as an empty variable
11 if (empty($_ENV['PWD'])) die('skip PWD is empty');
/PHP-8.2/ext/mysqli/tests/
H A Dmysqli_poll_kill.phpt40 if (!is_array($links) || empty($links))
41 … printf("[004] Expecting non-empty array got %s/%s\n", gettype($links), var_export($links, true));
54 if (!is_array($errors) || !empty($errors))
57 if (!is_array($reject) || !empty($reject))
58 … printf("[007] Expecting empty array got %s/%s\n", gettype($reject), var_export($reject, true));
68 if (!empty($errors))
96 if (!empty($errors)) {
111 if (!empty($reject)) {
156 if (!is_array($links) || empty($links))
171 if (!is_array($errors) || !empty($errors))
[all …]
/PHP-8.2/ext/standard/tests/filters/
H A D001.phpt28 stream_filter_register(): Argument #1 ($filter_name) must be a non-empty string
29 stream_filter_register(): Argument #2 ($class) must be a non-empty string
30 stream_filter_register(): Argument #1 ($filter_name) must be a non-empty string

Completed in 38 milliseconds

12345678910>>...37