#21512 [Opn->Bgs]: mkdir() does not work in safe mode
| From: | sesser@php.net | Date: | Wed, 08 Jan 2003 08:44:13 +0000 |
| Subject: | #21512 [Opn->Bgs]: mkdir() does not work in safe mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29416@lists.php.net to get a copy of this message | ||
ID: 21512
Updated by: sesser@php.net
-Reported By: lazybabies@yahoo.com
+Reported By: sarah@dwigs.net
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: Rehat 8.0
PHP Version: 4.2.3
New Comment:
It works in 4.3 so obviously it was fixed.
Previous Comments:
------------------------------------------------------------------------
[2003-01-08 02:44:12] lazybabies@yahoo.com
(changed my email address)
------------------------------------------------------------------------
[2003-01-08 02:32:51] lazybabies@yahoo.com
compiled into php:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-pgsql=/usr/local/pgsql/ --with-mcrypt=/usr/local --with-xml
--with-pdflib --disable-debug
using the following directives in my httpd.conf:
php_admin_value safe_mode 1
php_admin_value safe_mode_exec_dir /usr/local/src/demo/
this expression never evaluates to true:
if(!mkdir($new_dir, 0755)) {
$error = "The directory could not be created.";
}
the var $new_dir is always a subdirectory of a directory with umask=000
and mod=777 and ownership=nobody.nobody. The class running the code is
owned by nobody.nobody. Nobody owns the apache server (v.1.3.27)
processes.
If safe_mode is set to false, the mkdir() function works just fine.
Mkdir() + safe mode works just fine under php 4.3 also running under
redhat 8.0, with the same compile options, the same httpd.conf
directives, the same apache version, and the same directory
permissions...aaack!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21512&edit=1