ID:               42653
 Updated by:       [EMAIL PROTECTED]
 Reported By:      xavier at sdv dot fr
-Status:           Open
+Status:           Feedback
 Bug Type:         Directory function related
 Operating System: linux
 PHP Version:      5.2.4
 New Comment:

Exactly what OS is this? (linux kernel version, distro, etc..)


Previous Comments:
------------------------------------------------------------------------

[2007-09-13 17:10:29] xavier at sdv dot fr

Open basedir and safe mode are in effect, as you can see in the
phpinfo

But they are not relevent. The mkdir fails within the allowed path,
with corrects uid/gid.
If it was an open_basedir or safe_mode problem, mkdir("foo") whould
fail like mkdir("foo/"). But this is not the case. mkdir("foo") works,
mkdir("foo/") doesn't.

I even try the code with de CLI and a void php.ini, I have the same
error.

With exactly the same configuration and PHP 5.2.3, both mkdir("foo")
and mkdir("foo/") are working

------------------------------------------------------------------------

[2007-09-13 15:14:29] [EMAIL PROTECTED]

Do you have open_basedir and/or safe_mode enabled?

------------------------------------------------------------------------

[2007-09-13 13:00:40] xavier at sdv dot fr

The bug is occuring with mod_php against apache 1.3.37
I have the same problem with the CLI version

You can consult our phpinfo() : 
http://212.95.67.51/ and our php.ini 
http://212.95.67.51/php.ini

------------------------------------------------------------------------

[2007-09-13 09:41:38] [EMAIL PROTECTED]

Works fine for me. Please give some more information, f.e. what SAPI
you're using.

------------------------------------------------------------------------

[2007-09-13 09:33:37] xavier at sdv dot fr

Description:
------------
With php 5.2.4 if $pathname has a trailing /, mkdir($pathname) don't
work. This is a new behavior, it was working in php 5.2.3

Reproduce code:
---------------
<?
echo mkdir ("toto/")
?>

Expected result:
----------------
1

Actual result:
--------------
Warning: mkdir() [function.mkdir]: Unable to access toto/ in
/www/root/default_vhost/a/index.php on line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42653&edit=1

Reply via email to