ExecWithFallback Library
This is the exec-with-fallback library integrated into the Advanced File Manager plugin.
About
Some shared hosts may have disabled exec(), but left proc_open(), passthru(), popen() or shell_exec() open. This library provides fallback functionality to emulate exec() using these alternative functions.
Usage
The library is automatically loaded by the FMA Debug Validator class and provides enhanced PHP syntax validation capabilities.
Files
src/ExecWithFallback.php- Main class with fallback functionalitysrc/Passthru.php- Passthru implementationsrc/POpen.php- POpen implementationsrc/ProcOpen.php- ProcOpen implementationsrc/ShellExec.php- ShellExec implementationsrc/Availability.php- Function availability checkerautoload.php- Simple autoloader for the library
Integration
This library is used by:
class_fma_debug_validator.php- For robust PHP syntax validation- Enhanced debug features in the file manager
License
GPL-3.0 (same as the main plugin)