diff options
| author | Thies C. Arntzen <thies@php.net> | 2001-08-04 16:53:57 +0000 |
|---|---|---|
| committer | Thies C. Arntzen <thies@php.net> | 2001-08-04 16:53:57 +0000 |
| commit | 3884b15b9544f6d9d749d14d2b0cad9eca29a201 (patch) | |
| tree | 9dd58c2bd26b6604f67be48df38384e5736bbee0 /ext/standard/basic_functions.c | |
| parent | d789d45a2ea2280ad6eff2c391569fe513e6b2f9 (diff) | |
| download | php-git-3884b15b9544f6d9d749d14d2b0cad9eca29a201.tar.gz | |
fix possible crash - we should never keep the zval** as they might point
somewhere into the Engine. (there's still a new bug in strtok - hunting;-)
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index e136a4298c..f8c8cba25b 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -894,7 +894,7 @@ PHP_RINIT_FUNCTION(basic) PHP_RSHUTDOWN_FUNCTION(basic) { if (BG(strtok_zval)) - zval_ptr_dtor(BG(strtok_zval)); + zval_ptr_dtor(&BG(strtok_zval)); BG(strtok_string) = NULL; BG(strtok_zval) = NULL; #ifdef HAVE_PUTENV |
