From: priappub at yahoo dot fr Operating system: Solaris 10 PHP version: 5.2.1 PHP Bug Type: Safe Mode/open_basedir Bug description: php_getuid() always return 1.
Description: ------------ On solaris 10 (update 3) on sparc with PHP 5.1.6 or 5.1.2, safe mode doesn't work. I have the message: SAFE MODE Restriction in effect. The script whose uid/gid is 1/10076 is not allowed to access /sites/toto.php owned by uid/gid 10076/1000 in Unknown on line 0 The script and the directory have the same UID/GID. It seems like in safe_mode.c, php-getuid() always returns 1 and php_getgid() returns the UID. NB: same bug as http://bugs.php.net/bug.php?id=7744 or http://bugs.php.net/bug.php?id=18500 (they are old and for PHP4) -- Edit bug report at http://bugs.php.net/?id=40425&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40425&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40425&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40425&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40425&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40425&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40425&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40425&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40425&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40425&r=support Expected behavior: http://bugs.php.net/fix.php?id=40425&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40425&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40425&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40425&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40425&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40425&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40425&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40425&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40425&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40425&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40425&r=mysqlcfg
