|
From: <php...@li...> - 2009-01-21 17:05:30
|
Hi Jon, the main problem with version 3.2.1 is the hook into the Zend evaluator (the java.so or php_java.dll). Because the PHP low-level API changes constantly, it is impossible to maintain version 3.2.1 or below (PHP/Java Bridge 3.2.1 will no longer work with PHP 5.3 or PHP 6). >From Java's point of view a php-cgi (fast cgi executable) is a requirement. Otherwise you won't be able to run PHP interactively. As far as I know the interactive JSR 223 script engine is the only way to start a REPL. -- The php cli can be started with the -a flag, which emulates an interactive PHP session, but this doesn't really work well in practice: $ php -a php > foo(); crash Of cause there are other PHP implementations, some are written in pure Java. But none of them is 100% compatible with the PHP script engine from php.net, which renders these implementations useless. Regards, Jost Boekemeier |