Hi, I have a problem in using the Command Line PHP and mod_php together on NetWare. When both are used in tandem, the NetWare server crashes.
The way PHP is designed on NetWare is like this: - mod_php : This is the Apache2filter sapi module and is a separate executable - phplib : This is a separate exectable that contains: - TSRM - Zend - Standard extensions - bcmath - calendar - ftp - pcre - session - files in the "main" directory - etc. - Separate executables for LDAP, MySQL, XML etc. extensions. When Apache2 loads, it loads all these executables in memory. For the Command Line PHP, we have: - php : This is the CLI sapi module and is an executable. - phplib : This is the same executable as mentioned above. This executable is treated as a library and is loaded only once to serve both mod_php and php executables. - Other extensions are the same executables as above. Once Apache2 is in memory (which loads mod_php, phplib and other extensions, if enabled in php.ini), then when I execute the Command line PHP as: "php <script_name>", the server crashes. It crashes when it is trying to resolve zend_first_try. When I debugged further, I find that this is resolving to the "bailout" element of the "_zend_executor_globals" structure. This area has become invalid (only if phplib is already loaded in memory by Apache2) indicating that this has either not been allocated or been freed. If Apache2 is not in memory, then PHP Command Line works fine without any problems. It auto loads the phplib executable and works fine. Can someone throw some light on this please? Also, if someone can give me inputs on how this is implemented on Linux, it will help me since I find that this is working fine on Linux. Thanks in advance for your time, Ananth. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php