mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
random: Use ZVAL_EMPTY_ARRAY() for members in serialization (#20382)
This commit is contained in:
@@ -324,8 +324,7 @@ PHP_METHOD(Random_Engine_Mt19937, __serialize)
|
||||
array_init(return_value);
|
||||
|
||||
/* members */
|
||||
ZVAL_ARR(&t, zend_std_get_properties(&engine->std));
|
||||
Z_TRY_ADDREF(t);
|
||||
ZVAL_EMPTY_ARRAY(&t);
|
||||
zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &t);
|
||||
|
||||
/* state */
|
||||
|
||||
Reference in New Issue
Block a user