History log of /PHP-8.2/ext/random/tests/03_randomizer/construct_twice.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# f7d426cc 31-Aug-2022 Tim Düsterhus

Unify structure for ext/random's randomizer tests (#9410)

* Unify structure for ext/random's engine tests (2)

This makes adjustments that were missed in
2d6a883b3a1e5ee4f225dce6

Unify structure for ext/random's randomizer tests (#9410)

* Unify structure for ext/random's engine tests (2)

This makes adjustments that were missed in
2d6a883b3a1e5ee4f225dce64584ad2522e8e391.

* Add `engines.inc` for ext/random tests

* Unify structure for ext/random's randomizer tests

show more ...


# a6922fde 02-Aug-2022 Tim Düsterhus

Clean up the implementation of Randomizer::__construct() (#9222)

* Verify that the engine doesn't change in construct_twice.phpt

* Clean up the implementation of Randomizer::__const

Clean up the implementation of Randomizer::__construct() (#9222)

* Verify that the engine doesn't change in construct_twice.phpt

* Clean up the implementation of Randomizer::__construct()

Instead of manually checking whether the constructor was already called, we
rely on the `readonly` modifier of the `$engine` property.

Additionally use `object_init_ex()` instead of manually calling
`->create_object()`.

show more ...


# 34b352d1 23-Jul-2022 Go Kudo

Fix memory leak on Randomizer::__construct() call twice (#9091)

When Radomizer::__construct() was called with no arguments, Randomizer\Engine\Secure was implicitly instantiate and memory was

Fix memory leak on Randomizer::__construct() call twice (#9091)

When Radomizer::__construct() was called with no arguments, Randomizer\Engine\Secure was implicitly instantiate and memory was leaking.
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>

show more ...