From: [EMAIL PROTECTED] Operating system: Rehat 8.0 PHP version: 4.2.3 PHP Bug Type: Performance problem Bug description: mkdir() does not work in safe mode
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 bug report at http://bugs.php.net/?id=21512&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21512&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21512&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21512&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21512&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21512&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21512&r=support Expected behavior: http://bugs.php.net/fix.php?id=21512&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21512&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21512&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21512&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21512&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21512&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21512&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21512&r=gnused