From:             [EMAIL PROTECTED]
Operating system: Linux RedHat 7.x
PHP version:      4.1.0
PHP Bug Type:     Filesystem function related
Bug description:  Wrong group when creating directories

Here's a short script (the cause of the beginning) :
<?
  umask(000);
  mkdir("drawer/$newdir",0777);
?>

When this is done (this code is simplified) the file is owned by user
nobody and group #-1 ...

Here's the configure line : 
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--enable-inline-optimization' '--enable-debug=no' '--enable-safe-mode'
'--enable-calendar' '--enable-sysvsem' '--enable-sysvshm'
'--enable-trans-sid' '--disable-static' '--with-regex=system'
'--with-mysql=/usr/local/mysql' '--with-freetype-dir=/usr'
'--with-gd=/usr' '--enable-gd-native-tt'
'--enable-freetype-4bit-antialias-hack' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-zlib=/usr'
'--with-pdflib=/usr'

I'm running Zend optimiser V1.2.0

This script was running as a module from Apache V1.3.20 (apache user :
nobody, group : nobody).

I didn't test if this bug is also on other systems (I've only RedHat7.x
servers, but only one that can run Apache, the others has their respective
tasks).

I didn't compile PHP with the --enable-debug then I'm not able to give the
gdb backtrace (?) ...
-- 
Edit bug report at: http://bugs.php.net/?id=15285&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to