History log of /php-src/ext/random/tests/03_randomizer/construct_twice.phpt (Results 1 – 3 of 3)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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 ...


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3
# 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 ...

Revision tags: php-8.2.0beta2, php-8.1.9, php-8.0.22
# 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 ...