Re: PHP 4.0 Bug #5365 Updated: is_executable fails for user id root

From: Date: Wed, 05 Jul 2000 18:23:32 +0000
Subject: Re: PHP 4.0 Bug #5365 Updated: is_executable fails for user id root
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23621@lists.php.net to get a copy of this message
I do not run PHP CGI as root, but I often use it in scripts running from cron or the shell. But you are right, the problem is gone now, but I did not realize it. I build PHP4 regularly from CVS and then run the old PHP3 test scripts ("testall" in the php3/test directory, it takes only some minor changes to make them run on PHP4). The "file/001.php3t" began reporting an error with "is_executable" a couple of months ago. The strange thing is taht the bug was fixed, bat that the test script still reports the same error when running as root, but not when running as an ordinary user. So the old PHP3 test must have a bug somewhere that did not surface in PHP3. I copied the responsible lines from the script, but can not reproduce the error immediately. So I will close the bug report. Sorry for the inconvenience, but the old PHP3 test scripts have discovered quite a number of bugs when PHP4 was still beta. I will be more careful in the future. Danny --- Bug Database wrote: > > ID: 5365 > Updated by: stas > Reported By: danny.heijl@cevi.be > Status: Feedback > Bug Type: Misbehaving function > Assigned To: > Comments: > > Works for me. Please provide reporoducing script. > BTW, running PHP as root is rather unsafe, especially as CGI (i.e., with user data). > > Full Bug description available at: http://bugs.php.net/?id=5365

« previous php.dev (#23621) next »