php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5365 is_executable fails for user id root
Submitted: 2000-07-04 21:21 UTC Modified: 2000-07-06 20:23 UTC
From: danny dot heijl at cevi dot be Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (04/07/2000) OS: RH Linux 5.2 and 6.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danny dot heijl at cevi dot be
New email:
PHP Version: OS:

 

 [2000-07-04 21:21 UTC] danny dot heijl at cevi dot be
If the current user id is root (CGI PHP) :

rwxr-xr-x : is_executable() returns 1 : OK.
rw-r--r-- : is_executable() returns 1 : WRONG

No problem if current user is not root.

Danny
---

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-05 10:39 UTC] stas at cvs dot php dot net
Works for me. Please provide reporoducing script.
BTW, running PHP as root is rather unsafe, especially as CGI (i.e., with user data). 
 [2000-07-06 20:23 UTC] danny at cvs dot php dot net
The error was in the test script that dates from PHP3.
It has indeed been fixed.

Danny
---
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 20:00:02 2026 UTC