From: Dmitry Stogov Date: Wed, 20 May 2015 21:51:34 +0000 (+0300) Subject: Set proper type_info flags. X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0da206e4b77d06958f155261d02779851536bc8e;p=php Set proper type_info flags. --- 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));