php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49371 Error of mkdir doesn't show which parent directory does not exist.
Submitted: 2009-08-26 11:56 UTC Modified: 2009-08-26 12:17 UTC
From: info at adaniels dot nl Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.3.0 OS: Linux / Ubuntu 9.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at adaniels dot nl
New email:
PHP Version: OS:

 

 [2009-08-26 11:56 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-26 12:02 UTC] 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 12:17 UTC] info at adaniels dot nl
Right, sorry. You don't get that information at all than I guess.
 [2009-08-26 12:17 UTC] info at adaniels dot nl
bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC