mkdir() fails silently on PHP 5.3

Bug #46681 mkdir() fails silently on PHP 5.3
Submitted: 2008-11-26 10:18 UTC Modified: 2008-12-12 12:54 UTC
From: ant@php.net 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] ant@php.net

Description:
------------
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:

ext/standard/tests/file/mkdir_variation1.phpt
ext/standard/tests/file/mkdir_variation1-win32.phpt
ext/standard/tests/file/mkdir_variation5.phpt

Expected result:
----------------
See the expected output in the PHPTs.

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2008-11-26 11:08 UTC] ant@php.net

Here are the differences when I run ext/standard/tests/file/mkdir_variation5 on Linux:

009+ -- creating BADDIR/aSubDir --
009-
010- Warning: mkdir(): No such file or directory in %s on line %d
011- -- creating BADDIR/aSubDir --
012-
013- Warning: mkdir(): No such file or directory in %s on line %d
021-
022- Warning: mkdir(): No such file or directory in %s on line %d

 [2008-11-26 18:02 UTC] ant@php.net

These tests are also now checked into 6.0.

 [2008-12-12 12:54 UTC] bjori@php.net

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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.