Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3979 | major | always | 04-03-10 16:20 | 05-13-10 07:42 | |
|
|||||
Reporter: | domdorn | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.6 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.7 | ||
|
|||||
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 " "; ?> |
||||
Steps To Reproduce: | |||||
Additional Information: |
SUCCESS FAILED: someprogram.sh should be executable FAILED: /bin/bash should be executable FAILED: /bin/sh should be executable |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|