summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-04-30 02:22:58 +0300
committerDmitry Stogov <dmitry@zend.com>2019-04-30 02:22:58 +0300
commit3d2a6d9bedcadceda9b58deaae774e8551ff294e (patch)
treec2140e21bce3b0138f2338417bc9347eee0a4683 /ext
parentfaf24142f3f58d0f4c99143b06d120fe8b853d47 (diff)
parent8cdd2158949994f110188818e84b54db9a0ed4d1 (diff)
downloadphp-git-3d2a6d9bedcadceda9b58deaae774e8551ff294e.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Also, use ZEND_ACC_PRELOADED for classes
Diffstat (limited to 'ext')
-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 113371872f..284a1b7875 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -3225,6 +3225,7 @@ static void preload_move_user_classes(HashTable *src, HashTable *dst)
if (copy) {
zend_function *function;
+ ce->ce_flags |= ZEND_ACC_PRELOADED;
_zend_hash_append_ptr(dst, p->key, ce);
ZEND_HASH_FOREACH_PTR(&ce->function_table, function) {
if (EXPECTED(function->type == ZEND_USER_FUNCTION)) {