helly           Thu Nov 21 09:56:06 2002 EDT

  Modified files:              
    /php4/main  main.c php_globals.h 
    /php4       run-tests.php 
  Log:
  Make it possible to test language features like newly introduced 'abstract'
  independantly from debug mode.
  
  
Index: php4/main/main.c
diff -u php4/main/main.c:1.517 php4/main/main.c:1.518
--- php4/main/main.c:1.517      Tue Nov 19 09:11:50 2002
+++ php4/main/main.c    Thu Nov 21 09:56:06 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.517 2002/11/19 14:11:50 helly Exp $ */
+/* $Id: main.c,v 1.518 2002/11/21 14:56:06 helly Exp $ */
 
 /* {{{ includes
  */
@@ -246,6 +246,7 @@
        STD_PHP_INI_BOOLEAN("ignore_repeated_errors",   "0",    PHP_INI_ALL,           
 OnUpdateBool,                   ignore_repeated_errors, php_core_globals,       
core_globals)
        STD_PHP_INI_BOOLEAN("ignore_repeated_source",   "0",    PHP_INI_ALL,           
 OnUpdateBool,                   ignore_repeated_source, php_core_globals,       
core_globals)
        STD_PHP_INI_BOOLEAN("report_memleaks",          "1",            PHP_INI_ALL,   
         OnUpdateBool,                   report_memleaks,                
php_core_globals,       core_globals)
+       STD_PHP_INI_BOOLEAN("report_zend_debug",        "1",            PHP_INI_ALL,   
+         OnUpdateBool,                   report_zend_debug,              
+php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("magic_quotes_gpc",         "1",            
PHP_INI_PERDIR|PHP_INI_SYSTEM,  OnUpdateBool,   magic_quotes_gpc,               
php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("magic_quotes_runtime",     "0",            PHP_INI_ALL,   
         OnUpdateBool,                   magic_quotes_runtime,   php_core_globals,     
  core_globals)
        STD_PHP_INI_BOOLEAN("magic_quotes_sybase",      "0",            PHP_INI_ALL,   
         OnUpdateBool,                   magic_quotes_sybase,    php_core_globals,     
  core_globals)
@@ -615,7 +616,7 @@
                        }
                }
 #if ZEND_DEBUG
-               {
+               if (PG(report_zend_debug)) {
                        zend_bool trigger_break;
 
                        switch (type) {
Index: php4/main/php_globals.h
diff -u php4/main/php_globals.h:1.84 php4/main/php_globals.h:1.85
--- php4/main/php_globals.h:1.84        Mon Oct 21 12:41:06 2002
+++ php4/main/php_globals.h     Thu Nov 21 09:56:06 2002
@@ -140,6 +140,7 @@
 
        zend_bool always_populate_raw_post_data;
        
+       zend_bool report_zend_debug;
 };
 
 
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.126 php4/run-tests.php:1.127
--- php4/run-tests.php:1.126    Fri Nov 15 11:33:05 2002
+++ php4/run-tests.php  Thu Nov 21 09:56:06 2002
@@ -123,10 +123,11 @@
                'html_errors=0',
                'track_errors=1',
                'report_memleaks=1',
-               "docref_root=/phpmanual/",
-               "docref_ext=.html",
-               "error_prepend_string=",
-               "error_append_string=",
+               'report_zend_debug=0',
+               'docref_root=/phpmanual/',
+               'docref_ext=.html',
+               'error_prepend_string=',
+               'error_append_string=',
                'auto_prepend_file=',
                'auto_append_file=',
                'magic_quotes_runtime=0',



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to