Hey,

It looks like Shanes commit broke the CLI; what's odd is that it shouldn't,
and while debugging it, the bt shows that the callback is set to the right
thing, but it causes an illegal instruction.
Perhaps it's something to do with the calling conventions implied by PHPAPI,
as this seems to be the only inconsistency?

In the meantime, this patch prevents the problem.

--Wez.

Index: sapi/cli/php_cli.c
===================================================================
RCS file: /repository/php4/sapi/cli/php_cli.c,v
retrieving revision 1.35
diff -u -r1.35 php_cli.c
--- sapi/cli/php_cli.c  3 Oct 2002 10:35:33 -0000       1.35
+++ sapi/cli/php_cli.c  13 Oct 2002 23:59:55 -0000
@@ -156,7 +156,7 @@
        /* In CGI mode, we consider the environment to be a part of the server
         * variables
         */
-       php_import_environment_variables(track_vars_array TSRMLS_CC);
+       _php_import_environment_variables(track_vars_array TSRMLS_CC);

        /* Build the special-case PHP_SELF variable for the CLI version */
        php_register_variable("PHP_SELF", php_self, track_vars_array TSRMLS_CC);


-- 
Wez Furlong
The Brain Room Ltd.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to