main/main.c question

From: Date: Sun, 23 Jun 2002 01:08:10 +0000
Subject: main/main.c question
Groups: php.dev 
Request: Send a blank email to php-dev+get-85501@lists.php.net to get a copy of this message
1) Do we need the call to ts_resource? If so we could remove sapi_globals as we don't use it. If not we can remove the whole line which works fine for me. 2) One more warning in uninitialized dummy_track_vars_array regards marcus cvs -z3 -q diff main\main.c (in directory S:\php4\) Index: main/main.c =================================================================== RCS file: /repository/php4/main/main.c,v retrieving revision 1.460 diff -u -r1.460 main.c
--- main/main.c 23 Jun 2002 00:57:01 -0000      1.460
+++ main/main.c 23 Jun 2002 01:05:13 -0000 @@ -844,7 +844,6 @@
        void ***tsrm_ls;
        php_core_globals *core_globals;
-       sapi_globals_struct *sapi_globals = ts_resource(sapi_globals_id);
#endif #ifdef PHP_WIN32
        WORD wVersionRequested = MAKEWORD(2, 0);
@@ -1097,7 +1096,7 @@
        char *p;
        unsigned char _gpc_flags[3] = {0, 0, 0};
        zend_bool have_variables_order;
-       zval *dummy_track_vars_array;
+       zval *dummy_track_vars_array = NULL;
        zend_bool initialized_dummy_track_vars_array=0;
        int i;
        char *variables_order;
--------->>> mailto:marcus.boerger@post.rwth-aachen.de <<<------------ "Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie, nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen, dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten, indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben ist."
                       Umberto Eco, Die Insel des vorigen Tages
--------------->>> http://www.marcus-boerger.de <<<------------------- ---------->>> Tel. 0241 / 874 09-7 ### 0179 / 29 14 980 <<<----------

« previous php.dev (#85501) next »