helly Fri Dec 12 03:25:23 2003 EDT
Modified files:
/php-src/main main.c
Log:
Do not use before they are initialized.
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.582 php-src/main/main.c:1.583
--- php-src/main/main.c:1.582 Fri Dec 12 02:59:46 2003
+++ php-src/main/main.c Fri Dec 12 03:25:22 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.582 2003/12/12 07:59:46 helly Exp $ */
+/* $Id: main.c,v 1.583 2003/12/12 08:25:22 helly Exp $ */
/* {{{ includes
*/
@@ -576,7 +576,7 @@
php_error(type, "%s", message);
efree(message);
- if (PG(track_errors) && EG(active_symbol_table)) {
+ if (PG(track_errors) && module_initialized && EG(active_symbol_table)) {
zval *tmp;
ALLOC_INIT_ZVAL(tmp);
ZVAL_STRINGL(tmp, buffer, buffer_len, 1);
@@ -820,7 +820,7 @@
efree(buffer);
return;
}
- if (PG(track_errors) && EG(active_symbol_table)) {
+ if (PG(track_errors) && module_initialized && EG(active_symbol_table)) {
pval *tmp;
ALLOC_ZVAL(tmp);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php