Closed YuanchengJiang closed 4 weeks ago
The following code:
<?php $d = new DateInterval('P2Y4DT6H8M'); $fusion = $d; $u = [[]]; $fusion->__unserialize($u);
Resulted in this output:
/php-src/ext/date/php_date.c:4841: void restore_custom_dateinterval_properties(zval *, HashTable *): Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed. Aborted (core dumped)
PHP 8.4.0-dev
ubuntu 22.04
Minimal reproduction:
<?php new DateInterval('P1Y')->__unserialize([[]]);
Description
The following code:
Resulted in this output:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04