From 0da206e4b77d06958f155261d02779851536bc8e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 21 May 2015 00:51:34 +0300 Subject: [PATCH] Set proper type_info flags. --- ext/opcache/zend_persist.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.50.1