summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-21 14:56:06 +0000
committerMarcus Boerger <helly@php.net>2002-11-21 14:56:06 +0000
commitb7cd48efddacffe4fd864b0a1692d465719dd1bd (patch)
treeafd9755f88f4ed21d7e30c1f2cdaed8f0b4ccfe9 /main/main.c
parentda0e29e92f06dbd79783b81e9d7bcb903a739d81 (diff)
downloadphp-git-b7cd48efddacffe4fd864b0a1692d465719dd1bd.tar.gz
Make it possible to test language features like newly introduced 'abstract'
independantly from debug mode.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index 7cfc9462f0..e0bc8798a8 100644
--- a/main/main.c
+++ b/main/main.c
@@ -246,6 +246,7 @@ PHP_INI_BEGIN()
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 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
}
}
#if ZEND_DEBUG
- {
+ if (PG(report_zend_debug)) {
zend_bool trigger_break;
switch (type) {