summaryrefslogtreecommitdiff
path: root/ext/opcache/ZendAccelerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/ZendAccelerator.c')
-rw-r--r--ext/opcache/ZendAccelerator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 8577ba3834..8259cfa9af 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -466,6 +466,7 @@ static void accel_use_shm_interned_strings(void)
auto_global = (zend_auto_global*)Z_PTR(p->val);;
+ zend_string_addref(auto_global->name);
auto_global->name = accel_new_interned_string(auto_global->name);
if (p->key) {
p->key = accel_new_interned_string(p->key);