|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-12 01:00 UTC] tony2001@php.net
[2005-12-05 11:17 UTC] tomsommer@php.net
[2005-12-19 18:17 UTC] sniper@php.net
[2006-12-09 16:01 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ Seems to be a common problem nobody complains about... "is_executable()" does not work in safe_mode! Some PHP-Projects check for sendmail using this function and don't work in safe_mode even if sendmail acutally IS executable (i.e. PEAR: Mail.php). is_executable() should at least honor the safe_mode_exec_dir directive! Reproduce code: --------------- <?php if( is_executable( "/usr/sbin/sendmail" ) ) { print ("no probs!\n"); } else { print ("this really sucks!\n"); } ?> Try with PHP/CGI and suexec + safe_mode where example-UID != sendmail-UID Expected result: ---------------- true, what else? Actual result: -------------- false.