mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
14 lines
218 B
Plaintext
14 lines
218 B
Plaintext
|
--TEST--
|
||
|
Bug #41693 (scandir() allows empty directory names)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
var_dump(scandir(''));
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: scandir(): Directory name cannot be empty in %s on line %d
|
||
|
bool(false)
|
||
|
Done
|