@@ -550,14 +550,13 @@ static void zend_file_cache_serialize_prop_info(zval *zv,
550
550
prop = Z_PTR_P (zv );
551
551
UNSERIALIZE_PTR (prop );
552
552
553
- if (prop -> ce && !IS_SERIALIZED (prop -> ce )) {
553
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
554
+ if (!IS_SERIALIZED (prop -> ce )) {
554
555
SERIALIZE_PTR (prop -> ce );
555
- }
556
- if (prop -> name && !IS_SERIALIZED (prop -> name )) {
557
556
SERIALIZE_STR (prop -> name );
558
- }
559
- if (prop -> doc_comment && ! IS_SERIALIZED ( prop -> doc_comment )) {
560
- SERIALIZE_STR ( prop -> doc_comment );
557
+ if ( prop -> doc_comment ) {
558
+ SERIALIZE_STR (prop -> doc_comment );
559
+ }
561
560
}
562
561
}
563
562
}
@@ -574,12 +573,15 @@ static void zend_file_cache_serialize_class_constant(zval *z
574
573
c = Z_PTR_P (zv );
575
574
UNSERIALIZE_PTR (c );
576
575
577
- zend_file_cache_serialize_zval ( & c -> value , script , info , buf );
578
- if (c -> ce && !IS_SERIALIZED (c -> ce )) {
576
+ ZEND_ASSERT ( c -> ce != NULL );
577
+ if (!IS_SERIALIZED (c -> ce )) {
579
578
SERIALIZE_PTR (c -> ce );
580
- }
581
- if (c -> doc_comment && !IS_SERIALIZED (c -> doc_comment )) {
582
- SERIALIZE_STR (c -> doc_comment );
579
+
580
+ zend_file_cache_serialize_zval (& c -> value , script , info , buf );
581
+
582
+ if (c -> doc_comment ) {
583
+ SERIALIZE_STR (c -> doc_comment );
584
+ }
583
585
}
584
586
}
585
587
}
@@ -1179,14 +1181,13 @@ static void zend_file_cache_unserialize_prop_info(zval *zv,
1179
1181
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1180
1182
prop = Z_PTR_P (zv );
1181
1183
1182
- if (prop -> ce && !IS_UNSERIALIZED (prop -> ce )) {
1184
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
1185
+ if (!IS_UNSERIALIZED (prop -> ce )) {
1183
1186
UNSERIALIZE_PTR (prop -> ce );
1184
- }
1185
- if (prop -> name && !IS_UNSERIALIZED (prop -> name )) {
1186
1187
UNSERIALIZE_STR (prop -> name );
1187
- }
1188
- if (prop -> doc_comment && ! IS_UNSERIALIZED ( prop -> doc_comment )) {
1189
- UNSERIALIZE_STR ( prop -> doc_comment );
1188
+ if ( prop -> doc_comment ) {
1189
+ UNSERIALIZE_STR (prop -> doc_comment );
1190
+ }
1190
1191
}
1191
1192
}
1192
1193
}
@@ -1201,12 +1202,15 @@ static void zend_file_cache_unserialize_class_constant(zval *
1201
1202
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1202
1203
c = Z_PTR_P (zv );
1203
1204
1204
- zend_file_cache_unserialize_zval ( & c -> value , script , buf );
1205
- if (c -> ce && !IS_UNSERIALIZED (c -> ce )) {
1205
+ ZEND_ASSERT ( c -> ce != NULL );
1206
+ if (!IS_UNSERIALIZED (c -> ce )) {
1206
1207
UNSERIALIZE_PTR (c -> ce );
1207
- }
1208
- if (c -> doc_comment && !IS_UNSERIALIZED (c -> doc_comment )) {
1209
- UNSERIALIZE_STR (c -> doc_comment );
1208
+
1209
+ zend_file_cache_unserialize_zval (& c -> value , script , buf );
1210
+
1211
+ if (c -> doc_comment ) {
1212
+ UNSERIALIZE_STR (c -> doc_comment );
1213
+ }
1210
1214
}
1211
1215
}
1212
1216
}
0 commit comments