From 7334835143cf3a3907337e5f8b718252d870ea74 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 13 Feb 2013 21:41:07 +0400 Subject: [PATCH] Fixed zend_optimizerplus.enable_file_override=1 compatibility with PHP-5.3 --- zend_accelerator_module.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.40.0