@@ -526,14 +526,13 @@ static void zend_file_cache_serialize_prop_info(zval *zv,
526
526
prop = Z_PTR_P (zv );
527
527
UNSERIALIZE_PTR (prop );
528
528
529
- if (prop -> ce && !IS_SERIALIZED (prop -> ce )) {
529
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
530
+ if (!IS_SERIALIZED (prop -> ce )) {
530
531
SERIALIZE_PTR (prop -> ce );
531
- }
532
- if (prop -> name && !IS_SERIALIZED (prop -> name )) {
533
532
SERIALIZE_STR (prop -> name );
534
- }
535
- if (prop -> doc_comment && ! IS_SERIALIZED ( prop -> doc_comment )) {
536
- SERIALIZE_STR ( prop -> doc_comment );
533
+ if ( prop -> doc_comment ) {
534
+ SERIALIZE_STR (prop -> doc_comment );
535
+ }
537
536
}
538
537
}
539
538
}
@@ -550,12 +549,15 @@ static void zend_file_cache_serialize_class_constant(zval *z
550
549
c = Z_PTR_P (zv );
551
550
UNSERIALIZE_PTR (c );
552
551
553
- zend_file_cache_serialize_zval ( & c -> value , script , info , buf );
554
- if (c -> ce && !IS_SERIALIZED (c -> ce )) {
552
+ ZEND_ASSERT ( c -> ce != NULL );
553
+ if (!IS_SERIALIZED (c -> ce )) {
555
554
SERIALIZE_PTR (c -> ce );
556
- }
557
- if (c -> doc_comment && !IS_SERIALIZED (c -> doc_comment )) {
558
- SERIALIZE_STR (c -> doc_comment );
555
+
556
+ zend_file_cache_serialize_zval (& c -> value , script , info , buf );
557
+
558
+ if (c -> doc_comment ) {
559
+ SERIALIZE_STR (c -> doc_comment );
560
+ }
559
561
}
560
562
}
561
563
}
@@ -1144,14 +1146,13 @@ static void zend_file_cache_unserialize_prop_info(zval *zv,
1144
1146
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1145
1147
prop = Z_PTR_P (zv );
1146
1148
1147
- if (prop -> ce && !IS_UNSERIALIZED (prop -> ce )) {
1149
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
1150
+ if (!IS_UNSERIALIZED (prop -> ce )) {
1148
1151
UNSERIALIZE_PTR (prop -> ce );
1149
- }
1150
- if (prop -> name && !IS_UNSERIALIZED (prop -> name )) {
1151
1152
UNSERIALIZE_STR (prop -> name );
1152
- }
1153
- if (prop -> doc_comment && ! IS_UNSERIALIZED ( prop -> doc_comment )) {
1154
- UNSERIALIZE_STR ( prop -> doc_comment );
1153
+ if ( prop -> doc_comment ) {
1154
+ UNSERIALIZE_STR (prop -> doc_comment );
1155
+ }
1155
1156
}
1156
1157
}
1157
1158
}
@@ -1166,12 +1167,15 @@ static void zend_file_cache_unserialize_class_constant(zval *
1166
1167
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1167
1168
c = Z_PTR_P (zv );
1168
1169
1169
- zend_file_cache_unserialize_zval ( & c -> value , script , buf );
1170
- if (c -> ce && !IS_UNSERIALIZED (c -> ce )) {
1170
+ ZEND_ASSERT ( c -> ce != NULL );
1171
+ if (!IS_UNSERIALIZED (c -> ce )) {
1171
1172
UNSERIALIZE_PTR (c -> ce );
1172
- }
1173
- if (c -> doc_comment && !IS_UNSERIALIZED (c -> doc_comment )) {
1174
- UNSERIALIZE_STR (c -> doc_comment );
1173
+
1174
+ zend_file_cache_unserialize_zval (& c -> value , script , buf );
1175
+
1176
+ if (c -> doc_comment ) {
1177
+ UNSERIALIZE_STR (c -> doc_comment );
1178
+ }
1175
1179
}
1176
1180
}
1177
1181
}
0 commit comments