#49371 [Csd->Bgs]: Error of mkdir doesn't show which parent directory does not exist.
| From: | info at adaniels dot nl | Date: | Wed, 26 Aug 2009 12:17:54 +0000 |
| Subject: | #49371 [Csd->Bgs]: Error of mkdir doesn't show which parent directory does not exist. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141547@lists.php.net to get a copy of this message | ||
ID: 49371
User updated by: info at adaniels dot nl
Reported By: info at adaniels dot nl
-Status: Closed
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux / Ubuntu 9.04
PHP Version: 5.3.0
New Comment:
bogus
Previous Comments:
------------------------------------------------------------------------
[2009-08-26 12:17:19] info at adaniels dot nl
Right, sorry. You don't get that information at all than I guess.
------------------------------------------------------------------------
[2009-08-26 12:02:58] jani@php.net
I do not know how you get that /- but the part after word 'in' should
be the name of the script you run. It has nothing to do with the missing
path.
------------------------------------------------------------------------
[2009-08-26 11:56:00] info at adaniels dot nl
Description:
------------
Error of mkdir doesn't show which parent directory does not exist.
Instead it alway shows '/-' as directory.
Reproduce code:
---------------
<?php
mkdir('/tmp/does/not/exist');
mkdir('/var/cache/does/not/exist');
Expected result:
----------------
Warning: mkdir(): No such file or directory in /tmp on line 2
Warning: mkdir(): No such file or directory in /var/cache on line 3
Actual result:
--------------
Warning: mkdir(): No such file or directory in /- on line 2
Warning: mkdir(): No such file or directory in /- on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49371&edit=1