@@ -251,6 +251,13 @@ static void zend_file_cache_unserialize_func(zval *zv,
251
251
zend_persistent_script * script ,
252
252
void * buf );
253
253
254
+ static void zend_file_cache_serialize_attribute (zval * zv ,
255
+ zend_persistent_script * script ,
256
+ zend_file_cache_metainfo * info ,
257
+ void * buf );
258
+
259
+ static void zend_file_cache_unserialize_attribute (zval * zv , zend_persistent_script * script , void * buf );
260
+
254
261
static void * zend_file_cache_serialize_interned (zend_string * str ,
255
262
zend_file_cache_metainfo * info )
256
263
{
@@ -433,7 +440,7 @@ static void zend_file_cache_serialize_zval(zval *zv,
433
440
break ;
434
441
case IS_PTR :
435
442
/* Used by attributes on constants */
436
- SERIALIZE_PTR (Z_PTR_P (zv ));
443
+ SERIALIZE_ATTRIBUTES (Z_PTR_P (zv ));
437
444
break ;
438
445
default :
439
446
ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
@@ -1320,6 +1327,10 @@ static void zend_file_cache_unserialize_zval(zval *zv,
1320
1327
/* Used by static properties. */
1321
1328
UNSERIALIZE_PTR (Z_INDIRECT_P (zv ));
1322
1329
break ;
1330
+ case IS_PTR :
1331
+ /* Used by attributes on constants */
1332
+ UNSERIALIZE_ATTRIBUTES (Z_PTR_P (zv ));
1333
+ break ;
1323
1334
default :
1324
1335
ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
1325
1336
break ;
0 commit comments