@@ -535,14 +535,13 @@ static void zend_file_cache_serialize_prop_info(zval *zv,
535
535
prop = Z_PTR_P (zv );
536
536
UNSERIALIZE_PTR (prop );
537
537
538
- if (prop -> ce && !IS_SERIALIZED (prop -> ce )) {
538
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
539
+ if (!IS_SERIALIZED (prop -> ce )) {
539
540
SERIALIZE_PTR (prop -> ce );
540
- }
541
- if (prop -> name && !IS_SERIALIZED (prop -> name )) {
542
541
SERIALIZE_STR (prop -> name );
543
- }
544
- if (prop -> doc_comment && ! IS_SERIALIZED ( prop -> doc_comment )) {
545
- SERIALIZE_STR ( prop -> doc_comment );
542
+ if ( prop -> doc_comment ) {
543
+ SERIALIZE_STR (prop -> doc_comment );
544
+ }
546
545
}
547
546
}
548
547
}
@@ -559,12 +558,15 @@ static void zend_file_cache_serialize_class_constant(zval *z
559
558
c = Z_PTR_P (zv );
560
559
UNSERIALIZE_PTR (c );
561
560
562
- zend_file_cache_serialize_zval ( & c -> value , script , info , buf );
563
- if (c -> ce && !IS_SERIALIZED (c -> ce )) {
561
+ ZEND_ASSERT ( c -> ce != NULL );
562
+ if (!IS_SERIALIZED (c -> ce )) {
564
563
SERIALIZE_PTR (c -> ce );
565
- }
566
- if (c -> doc_comment && !IS_SERIALIZED (c -> doc_comment )) {
567
- SERIALIZE_STR (c -> doc_comment );
564
+
565
+ zend_file_cache_serialize_zval (& c -> value , script , info , buf );
566
+
567
+ if (c -> doc_comment ) {
568
+ SERIALIZE_STR (c -> doc_comment );
569
+ }
568
570
}
569
571
}
570
572
}
@@ -1159,14 +1161,13 @@ static void zend_file_cache_unserialize_prop_info(zval *zv,
1159
1161
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1160
1162
prop = Z_PTR_P (zv );
1161
1163
1162
- if (prop -> ce && !IS_UNSERIALIZED (prop -> ce )) {
1164
+ ZEND_ASSERT (prop -> ce != NULL && prop -> name != NULL );
1165
+ if (!IS_UNSERIALIZED (prop -> ce )) {
1163
1166
UNSERIALIZE_PTR (prop -> ce );
1164
- }
1165
- if (prop -> name && !IS_UNSERIALIZED (prop -> name )) {
1166
1167
UNSERIALIZE_STR (prop -> name );
1167
- }
1168
- if (prop -> doc_comment && ! IS_UNSERIALIZED ( prop -> doc_comment )) {
1169
- UNSERIALIZE_STR ( prop -> doc_comment );
1168
+ if ( prop -> doc_comment ) {
1169
+ UNSERIALIZE_STR (prop -> doc_comment );
1170
+ }
1170
1171
}
1171
1172
}
1172
1173
}
@@ -1181,12 +1182,15 @@ static void zend_file_cache_unserialize_class_constant(zval *
1181
1182
UNSERIALIZE_PTR (Z_PTR_P (zv ));
1182
1183
c = Z_PTR_P (zv );
1183
1184
1184
- zend_file_cache_unserialize_zval ( & c -> value , script , buf );
1185
- if (c -> ce && !IS_UNSERIALIZED (c -> ce )) {
1185
+ ZEND_ASSERT ( c -> ce != NULL );
1186
+ if (!IS_UNSERIALIZED (c -> ce )) {
1186
1187
UNSERIALIZE_PTR (c -> ce );
1187
- }
1188
- if (c -> doc_comment && !IS_UNSERIALIZED (c -> doc_comment )) {
1189
- UNSERIALIZE_STR (c -> doc_comment );
1188
+
1189
+ zend_file_cache_unserialize_zval (& c -> value , script , buf );
1190
+
1191
+ if (c -> doc_comment ) {
1192
+ UNSERIALIZE_STR (c -> doc_comment );
1193
+ }
1190
1194
}
1191
1195
}
1192
1196
}
0 commit comments