summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-05-28 12:30:06 +0000
committerThies C. Arntzen <thies@php.net>2000-05-28 12:30:06 +0000
commit44cf237a720ddef94b98e301951699d39e657a64 (patch)
treeb2c4944985dc61c9a21b0803bc64c23d18d447bf
parent90331b27aca605022549aab67b7a4daf537ba91c (diff)
downloadphp-git-44cf237a720ddef94b98e301951699d39e657a64.tar.gz
(php_execute_script) fix leak for phpinfo() images.
# maybe the activate/deactivate should be moved outside php_execute_script()?
-rw-r--r--main/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 5212b6cbe0..aacdc87196 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1156,17 +1156,21 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_
if (!strcmp(SG(request_info).query_string+1, PHP_LOGO_GUID)) {
sapi_add_header(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF)-1, 1);
PHPWRITE(php_logo, sizeof(php_logo));
+ zend_deactivate_modules();
return;
} else if (!strcmp(SG(request_info).query_string+1, PHP_EGG_LOGO_GUID)) {
sapi_add_header(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF)-1, 1);
PHPWRITE(php_egg_logo, sizeof(php_egg_logo));
+ zend_deactivate_modules();
return;
} else if (!strcmp(SG(request_info).query_string+1, ZEND_LOGO_GUID)) {
sapi_add_header(CONTEXT_TYPE_IMAGE_GIF, sizeof(CONTEXT_TYPE_IMAGE_GIF)-1, 1);
PHPWRITE(zend_logo, sizeof(zend_logo));
+ zend_deactivate_modules();
return;
} else if (!strcmp(SG(request_info).query_string+1, "PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000")) {
php_print_credits(PHP_CREDITS_ALL);
+ zend_deactivate_modules();
return;
}
}