On Wed, Apr 10, 2013 at 7:14 PM, Dmitry Stogov <dmi...@zend.com> wrote:

> Hi,
>
> 1) I didn't get why do we need fprintf("Loaded/Unloaded extension"). It'll
> break all the tests in DEBUG mode
>
> 2) zend_error() may work through SAPI handler (e.g. for FastCGI sapi it
> may try to send error message to WebServer while request context is not
> initialized yet). I think it must work now, but should be double checked.
>
>
After several tests on CLI and CGI, I see no bug, but starting cgi makes
the error message being printed twice :

*/tmp/bin/php-cgi -dzend_extension=foo.so -dtrack_errors=1*
*PHP Warning:  /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so
doesn't appear to be a valid Zend Engine extension*
* in Unknown on line 0*
*Unknown(0) : Warning -
/tmp/lib/php/extensions/debug-non-zts-20121212/foo.so doesn't appear to be
a valid Zend Engine extension*
*
*
*PHP Warning:  /tmp/lib/php/extensions/debug-non-zts-20121212/foo.so appear
to be a PHP extension, try to load it using extension=foo.so*
* in Unknown on line 0*
*Unknown(0) : Warning -
/tmp/lib/php/extensions/debug-non-zts-20121212/foo.so appear to be a PHP
extension, try to load it using extension=foo.so*
*
*
Julien.Pauli

Reply via email to