Commit:    7334835143cf3a3907337e5f8b718252d870ea74
Author:    Dmitry Stogov <dmi...@zend.com>         Wed, 13 Feb 2013 21:41:07 
+0400
Parents:   2ba47175cff2f93b166b526bf942dfb8aaa406bf
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=7334835143cf3a3907337e5f8b718252d870ea74

Log:
Fixed zend_optimizerplus.enable_file_override=1 compatibility with PHP-5.3

Changed paths:
  M  zend_accelerator_module.c


Diff:
diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c
index b1c90a0..41ae426 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to