@@ -251,6 +251,13 @@ static void zend_file_cache_unserialize_func(zval *zv,
251251 zend_persistent_script * script ,
252252 void * buf );
253253
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+
254261static void * zend_file_cache_serialize_interned (zend_string * str ,
255262 zend_file_cache_metainfo * info )
256263{
@@ -433,7 +440,7 @@ static void zend_file_cache_serialize_zval(zval *zv,
433440 break ;
434441 case IS_PTR :
435442 /* Used by attributes on constants */
436- SERIALIZE_PTR (Z_PTR_P (zv ));
443+ SERIALIZE_ATTRIBUTES (Z_PTR_P (zv ));
437444 break ;
438445 default :
439446 ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
@@ -1320,6 +1327,10 @@ static void zend_file_cache_unserialize_zval(zval *zv,
13201327 /* Used by static properties. */
13211328 UNSERIALIZE_PTR (Z_INDIRECT_P (zv ));
13221329 break ;
1330+ case IS_PTR :
1331+ /* Used by attributes on constants */
1332+ UNSERIALIZE_ATTRIBUTES (Z_PTR_P (zv ));
1333+ break ;
13231334 default :
13241335 ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
13251336 break ;
0 commit comments