Make the phpinfo() images work properly again

This commit is contained in:
Zeev Suraski 2000-01-18 19:15:45 +00:00
parent cd377b646d
commit f6ac18841d

View file

@ -1191,6 +1191,7 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_
zend_file_handle prepend_file, append_file; zend_file_handle prepend_file, append_file;
SLS_FETCH(); SLS_FETCH();
zend_activate_modules();
if (SG(request_info).query_string && SG(request_info).query_string[0]=='=' if (SG(request_info).query_string && SG(request_info).query_string[0]=='='
&& PG(expose_php)) { && PG(expose_php)) {
if (!strcmp(SG(request_info).query_string+1, PHP_LOGO_GUID)) { if (!strcmp(SG(request_info).query_string+1, PHP_LOGO_GUID)) {
@ -1239,7 +1240,6 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_
if (EG(main_op_array)) { if (EG(main_op_array)) {
zend_hash_environment(PLS_C ELS_CC SLS_CC); zend_hash_environment(PLS_C ELS_CC SLS_CC);
EG(active_op_array) = EG(main_op_array); EG(active_op_array) = EG(main_op_array);
zend_activate_modules();
zend_execute(EG(main_op_array) ELS_CC); zend_execute(EG(main_op_array) ELS_CC);
} }
} }