@@ -375,16 +375,6 @@ static void zend_file_cache_serialize_zval(zval *zv,
375
375
zend_file_cache_serialize_hash (ht , script , info , buf , zend_file_cache_serialize_zval );
376
376
}
377
377
break ;
378
- case IS_REFERENCE :
379
- if (!IS_SERIALIZED (Z_REF_P (zv ))) {
380
- zend_reference * ref ;
381
-
382
- SERIALIZE_PTR (Z_REF_P (zv ));
383
- ref = Z_REF_P (zv );
384
- UNSERIALIZE_PTR (ref );
385
- zend_file_cache_serialize_zval (& ref -> val , script , info , buf );
386
- }
387
- break ;
388
378
case IS_CONSTANT_AST :
389
379
if (!IS_SERIALIZED (Z_AST_P (zv ))) {
390
380
zend_ast_ref * ast ;
@@ -399,6 +389,9 @@ static void zend_file_cache_serialize_zval(zval *zv,
399
389
/* Used by static properties. */
400
390
SERIALIZE_PTR (Z_INDIRECT_P (zv ));
401
391
break ;
392
+ default :
393
+ ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
394
+ break ;
402
395
}
403
396
}
404
397
@@ -1171,15 +1164,6 @@ static void zend_file_cache_unserialize_zval(zval *zv,
1171
1164
script , buf , zend_file_cache_unserialize_zval , ZVAL_PTR_DTOR );
1172
1165
}
1173
1166
break ;
1174
- case IS_REFERENCE :
1175
- if (!IS_UNSERIALIZED (Z_REF_P (zv ))) {
1176
- zend_reference * ref ;
1177
-
1178
- UNSERIALIZE_PTR (Z_REF_P (zv ));
1179
- ref = Z_REF_P (zv );
1180
- zend_file_cache_unserialize_zval (& ref -> val , script , buf );
1181
- }
1182
- break ;
1183
1167
case IS_CONSTANT_AST :
1184
1168
if (!IS_UNSERIALIZED (Z_AST_P (zv ))) {
1185
1169
UNSERIALIZE_PTR (Z_AST_P (zv ));
@@ -1190,6 +1174,9 @@ static void zend_file_cache_unserialize_zval(zval *zv,
1190
1174
/* Used by static properties. */
1191
1175
UNSERIALIZE_PTR (Z_INDIRECT_P (zv ));
1192
1176
break ;
1177
+ default :
1178
+ ZEND_ASSERT (Z_TYPE_P (zv ) < IS_STRING );
1179
+ break ;
1193
1180
}
1194
1181
}
1195
1182
0 commit comments