From: Dmitry Stogov Date: Wed, 13 Feb 2013 17:41:07 +0000 (+0400) Subject: Fixed zend_optimizerplus.enable_file_override=1 compatibility with PHP-5.3 X-Git-Tag: php-5.5.0beta1~42^2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7334835143cf3a3907337e5f8b718252d870ea74;p=php Fixed zend_optimizerplus.enable_file_override=1 compatibility with PHP-5.3 --- diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c index b1c90a0eac..41ae426899 100644 --- a/zend_accelerator_module.c +++ b/zend_accelerator_module.c @@ -291,6 +291,10 @@ static void accel_file_in_cache(int type, INTERNAL_FUNCTION_PARAMETERS) convert_to_string_ex(zfilename); filename = Z_STRVAL_PP(zfilename); filename_len = Z_STRLEN_PP(zfilename); +#elif ZEND_EXTENSION_API_NO == PHP_5_3_X_API_NO + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { + return; + } #else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { return;