#42653 [Opn->Fbk]: mkdir ("foo/bar/") not working

From: Date: Thu, 13 Sep 2007 15:14:29 +0000
Subject: #42653 [Opn->Fbk]: mkdir ("foo/bar/") not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117530@lists.php.net to get a copy of this message
ID: 42653 Updated by: iliaa@php.net 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: Do you have open_basedir and/or safe_mode enabled? Previous Comments: ------------------------------------------------------------------------ [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] jani@php.net 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

« previous php.bugs (#117530) next »