|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46681 mkdir() fails silently on PHP 5.3
Submitted: 2008-11-26 10:18 UTC Modified: 2008-12-12 12:54 UTC
From: Assigned: bjori (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.3CVS-2008-11-26 (snap) OS: *
Private report: No CVE-ID: None
 [2008-11-26 10:18 UTC]
The following tests were ported from 5.2.X and do not work as 
expected on 5.3. It appears mkdir(...) on an invalid directory now 
fails silently while before it raised a warning.

All these tests have been marked with an --XFAIL-- section which will 
need to be removed...

Reproduce code:
See the following tests now checked into CVS:


Expected result:
See the expected output in the PHPTs.

Actual result:
See the actual output from running the tests.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-26 11:08 UTC]
Here are the differences when I run ext/standard/tests/file/mkdir_variation5 on Linux:

009+ -- creating BADDIR/aSubDir --
010- Warning: mkdir(): No such file or directory in %s on line %d
011- -- creating BADDIR/aSubDir --
013- Warning: mkdir(): No such file or directory in %s on line %d
022- Warning: mkdir(): No such file or directory in %s on line %d
 [2008-11-26 18:02 UTC]
These tests are also now checked into 6.0.
 [2008-12-12 12:54 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jul 05 06:05:45 2022 UTC