Skip to content

Commit cfbd3cc

Browse files
Fix file cache serialization
1 parent 097cc9c commit cfbd3cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ static void zend_file_cache_serialize_zval(zval *zv,
431431
/* Used by static properties. */
432432
SERIALIZE_PTR(Z_INDIRECT_P(zv));
433433
break;
434+
case IS_PTR:
435+
/* Used by attributes on constants */
436+
SERIALIZE_PTR(Z_PTR_P(zv));
437+
break;
434438
default:
435439
ZEND_ASSERT(Z_TYPE_P(zv) < IS_STRING);
436440
break;

0 commit comments

Comments
 (0)