summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-05-21 00:51:34 +0300
committerDmitry Stogov <dmitry@zend.com>2015-05-21 00:51:34 +0300
commit0da206e4b77d06958f155261d02779851536bc8e (patch)
tree00be90fe37c6a6c45da01986e528de8c8d427bde /ext/opcache
parentcf6ac5c66527afcd8cceafff86b485d2ddba6d1b (diff)
downloadphp-git-0da206e4b77d06958f155261d02779851536bc8e.tar.gz
Set proper type_info flags.
Diffstat (limited to 'ext/opcache')
-rw-r--r--ext/opcache/zend_persist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c
index d1c1bb279a..09eebe0d02 100644
--- a/ext/opcache/zend_persist.c
+++ b/ext/opcache/zend_persist.c
@@ -342,6 +342,7 @@ static void zend_persist_zval_static(zval *z)
new_ptr = zend_shared_alloc_get_xlat_entry(Z_AST_P(z));
if (new_ptr) {
Z_AST_P(z) = new_ptr;
+ Z_TYPE_FLAGS_P(z) = IS_TYPE_CONSTANT | IS_TYPE_IMMUTABLE;
} else {
zend_accel_store(Z_AST_P(z), sizeof(zend_ast_ref));
Z_ASTVAL_P(z) = zend_persist_ast(Z_ASTVAL_P(z));