com php-src: Set proper type_info flags.: ext/opcache /zend_persist.c
| From: | Dmitry Stogov | Date: | Wed, 20 May 2015 21:51:34 +0000 |
| Subject: | com php-src: Set proper type_info flags.: ext/opcache /zend_persist.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86835@lists.php.net to get a copy of this message | ||
Commit: 0da206e4b77d06958f155261d02779851536bc8e
Author: Dmitry Stogov <dmitry@zend.com> Thu, 21 May 2015 00:51:34 +0300
Parents: cf6ac5c66527afcd8cceafff86b485d2ddba6d1b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0da206e4b77d06958f155261d02779851536bc8e
Log:
Set proper type_info flags.
Changed paths:
M ext/opcache/zend_persist.c
Diff:
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c
index d1c1bb2..09eebe0 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));