I agree that this functionality would be nice to have in CLI. I have tried
to compile the code attached, but with no luck. Even after fixing obvious
syntax errors, the compiled php just ignores passed string.
> i just looked at the code for a possibility to extend CLI to execute code
> without us
hi,
i just looked at the code for a possibility to extend CLI to execute code
without using files. For example:
php -- 'echo "Hello World";'
I saw that only files can be executed, so i had to pacth the following files:
Zend/zend_compile.h:
added new constant ZEND_HANDLE_STRING