[go: up one dir, main page]

Skip to content

Commit

Permalink
PHP 7.2 compatible serialization in PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tstarling committed Aug 30, 2022
1 parent 198f3f5 commit 0c3ac20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/standard/var.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_
zend_bool incomplete_class;
uint32_t count;

#if 0
if (zend_hash_str_exists(&ce->function_table, "__serialize", sizeof("__serialize")-1)) {
zval retval, obj;
zend_string *key;
Expand Down Expand Up @@ -1049,7 +1050,8 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_
zval_ptr_dtor(&retval);
return;
}

#endif

if (ce->serialize != NULL) {
/* has custom handler */
unsigned char *serialized_data = NULL;
Expand Down

0 comments on commit 0c3ac20

Please sign in to comment.