Bug #18056 Updated: special characters in dir of file names
| From: | sniper@php.net | Date: | Sat, 29 Jun 2002 01:15:49 +0000 |
| Subject: | Bug #18056 Updated: special characters in dir of file names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12472@lists.php.net to get a copy of this message | ||
ID: 18056
Updated by: sniper@php.net
Reported By: marekful@sziget.hu
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Red Hat 7.2 Kernel 2.4.9.-31
PHP Version: 4.2.1
New Comment:
Marking as bogus..works fine here.
Try this:
<?php
$t = opendir('.');
while ($line = readdir($t)) {
var_dump($line);
echo "\n";
}
closedir($t);
?>
Works fine here with any wierd filenames, directory..etc.
Previous Comments:
------------------------------------------------------------------------
[2002-06-28 21:07:50] marekful@sziget.hu
If there is an "&" or "'" in any file or directory names
opendir or any other filesystem functions like rename or unlink will
fail.
------------------------------------------------------------------------
[2002-06-28 21:06:12] marekful@sziget.hu
If there is an "&" or "'" in any file or directory names
opendir or any other filesystem functions like rename or unlink will
fail.
Would you please send me some feedback on this problem?
Thank you: Marcell Fülöp
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18056&edit=1