summaryrefslogtreecommitdiff
path: root/main/configuration-parser.y
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-27 10:00:54 +0000
committerZeev Suraski <zeev@php.net>1999-04-27 10:00:54 +0000
commit1245356128de425b78ae9f69507ec89f16396644 (patch)
tree9e245b85a4eba0a9593ffbc3a933b8bb72af01ef /main/configuration-parser.y
parent9b564535666d1d6e402b4f2f80c2a6ab1156d3f5 (diff)
downloadphp-git-1245356128de425b78ae9f69507ec89f16396644.tar.gz
* Get rid of the memory leak messages in case of fatal errors or exit()
* .dsp fixes * Minor fixes
Diffstat (limited to 'main/configuration-parser.y')
-rw-r--r--main/configuration-parser.y18
1 files changed, 16 insertions, 2 deletions
diff --git a/main/configuration-parser.y b/main/configuration-parser.y
index d5ca601051..a2ea934bb1 100644
--- a/main/configuration-parser.y
+++ b/main/configuration-parser.y
@@ -348,6 +348,8 @@ static void convert_browscap_pattern(pval *pattern)
%token EXTENSION
%token T_ZEND_EXTENSION
%token T_ZEND_EXTENSION_TS
+%token T_ZEND_EXTENSION_DEBUG
+%token T_ZEND_EXTENSION_DEBUG_TS
%%
@@ -380,13 +382,25 @@ statement:
php3_dl(&$3,MODULE_PERSISTENT,&dummy);
}
| T_ZEND_EXTENSION '=' string {
-#ifndef ZTS
+#if !defined(ZTS) && !defined(ZEND_DEBUG)
zend_load_extension($3.value.str.val);
#endif
free($3.value.str.val);
}
| T_ZEND_EXTENSION_TS '=' string {
-#ifdef ZTS
+#if defined(ZTS) && !defined(ZEND_DEBUG)
+ zend_load_extension($3.value.str.val);
+#endif
+ free($3.value.str.val);
+ }
+ | T_ZEND_EXTENSION_DEBUG '=' string {
+#if !defined(ZTS) && defined(ZEND_DEBUG)
+ zend_load_extension($3.value.str.val);
+#endif
+ free($3.value.str.val);
+ }
+ | T_ZEND_EXTENSION_DEBUG_TS '=' string {
+#if defined(ZTS) && defined(ZEND_DEBUG)
zend_load_extension($3.value.str.val);
#endif
free($3.value.str.val);