We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef0d67 commit 34645aeCopy full SHA for 34645ae
ext/opcache/ZendAccelerator.c
@@ -3764,6 +3764,18 @@ static int accel_preload(const char *config)
3764
preload_link();
3765
preload_remove_empty_includes();
3766
3767
+ /* Don't preload constants */
3768
+ if (EG(zend_constants)) {
3769
+ zval *zv;
3770
+ ZEND_HASH_REVERSE_FOREACH_VAL(EG(zend_constants), zv) {
3771
+ zend_constant *c = Z_PTR_P(zv);
3772
+ if (ZEND_CONSTANT_FLAGS(c) & CONST_PERSISTENT) {
3773
+ break;
3774
+ }
3775
+ EG(zend_constants)->pDestructor(zv);
3776
+ } ZEND_HASH_FOREACH_END_DEL();
3777
3778
+
3779
script = create_persistent_script();
3780
3781
/* Fill in the ping_auto_globals_mask for the new script. If jit for auto globals is enabled we
0 commit comments