diff options
| author | Zeev Suraski <zeev@php.net> | 1999-04-27 10:00:54 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-04-27 10:00:54 +0000 |
| commit | 1245356128de425b78ae9f69507ec89f16396644 (patch) | |
| tree | 9e245b85a4eba0a9593ffbc3a933b8bb72af01ef /main/configuration-parser.y | |
| parent | 9b564535666d1d6e402b4f2f80c2a6ab1156d3f5 (diff) | |
| download | php-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.y | 18 |
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); |
