summaryrefslogtreecommitdiff
path: root/ext/opcache/ZendAccelerator.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-01-13 15:34:25 +0400
committerDmitry Stogov <dmitry@zend.com>2014-01-13 15:34:25 +0400
commitca550248f18c842c22f3db880b8ea66c553da343 (patch)
tree34053f0006a81bcefa88352394d694d43df51af2 /ext/opcache/ZendAccelerator.c
parentd09d64c15c282f91ce5af7791d52a8e2d1833aa9 (diff)
downloadphp-git-ca550248f18c842c22f3db880b8ea66c553da343.tar.gz
Fixed bug #66471 (Keep backward compatibility)
Diffstat (limited to 'ext/opcache/ZendAccelerator.c')
-rw-r--r--ext/opcache/ZendAccelerator.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index abb01b58a0..81ab482686 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -36,7 +36,11 @@
#include "main/php_open_temporary_file.h"
#include "zend_API.h"
#include "zend_ini.h"
-#include "zend_virtual_cwd.h"
+#if ZEND_EXTENSION_API_NO > PHP_5_5_X_API_NO
+# include "zend_virtual_cwd.h"
+#else
+# include "TSRM/tsrm_virtual_cwd.h"
+#endif
#include "zend_accelerator_util_funcs.h"
#include "zend_accelerator_hash.h"
@@ -387,8 +391,10 @@ static void accel_use_shm_interned_strings(TSRMLS_D)
{
Bucket *p, *q;
+#if ZEND_EXTENSION_API_NO > PHP_5_5_X_API_NO
/* empty string */
CG(interned_empty_string) = accel_new_interned_string("", sizeof(""), 0 TSRMLS_CC);
+#endif
/* function table hash keys */
p = CG(function_table)->pListHead;