Anonymous | Login | Signup for a new account | 12-17-2024 08:56 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003979 | [Quercus] | major | always | 04-03-10 16:20 | 05-13-10 07:42 | ||||
Reporter | domdorn | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.6 | ||||||
Summary | 0003979: is_executable is broken | ||||||||
Description |
is_executable delegates to com.caucho.vfs.Path.isExecutable(). However, this seems to be broken, which then breaks various PHP applications that require external binaries (e.g. ImageMagick) and check if they are executable before calling them (e.g. Typo3, PHPGallery). <? touch("someprogram.sh"); chmod("someprogram.sh", 0700); if( file_exists("someprogram.sh")) { echo "SUCCESS"; } else { echo "FAILED: someprogram.sh should have been created"; } echo " "; if( is_executable("someprogram.sh") === true){ echo "SUCCESS"; } else { echo "FAILED: someprogram.sh should be executable"; } echo " "; if( is_executable("/bin/bash") === true){ echo "SUCCESS"; } else { echo "FAILED: /bin/bash should be executable"; } echo " "; if( is_executable("/bin/sh") === true){ echo "SUCCESS"; } else { echo "FAILED: /bin/sh should be executable"; } echo " "; ?> |
||||||||
Additional Information |
SUCCESS FAILED: someprogram.sh should be executable FAILED: /bin/bash should be executable FAILED: /bin/sh should be executable |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |