Closed
Description
Description
The following code:
<?php
$r = new ReflectionProperty(Exception::class, 'message');
$r->__construct(Exception::class, 'message');
Resulted in this output:
root@b19f2b6240fd:/usr/src/php# php /var/www/html/test.php
[Fri Oct 25 18:18:20 2024] Script: '/var/www/html/test.php'
/usr/src/php/ext/reflection/php_reflection.c(5837) : Freeing 0x00007f853ca01120 (16 bytes), script=/var/www/html/test.php
=== Total 1 memory leaks detected ===
But I expected this output instead:
[none]
Also tested and have a memory leak:
- ReflectionExtension
- ReflectionObject
- ReflectionParameter (2 leaks)
- ReflectionProperty
PHP Version
8.5-dev
Operating System
No response