1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00
Files
archived-php-src/ext
Ilija Tovilo 93fc88e808 Fix Enum::from/tryFrom memory leak in JIT for internal enums
when passing an int to a string enum. Previously, the int was coerced to
a string. The JIT skips parameter clean up when unnecessary. In this
particular case, passing int to from(int|string) normally doesn't cause
a coercion so no dtor for the $value zval is generated.

To circumvent this we avoid coersion by explicitly allowing ints and
converting them to strings ourselves. Then we can free it appropriately.

See GH-8518
Closes GH-8633
2022-05-28 10:51:17 +02:00
..
2022-05-03 15:08:43 +02:00
2022-05-27 14:44:06 +01:00
2021-11-14 23:29:59 -08:00
2022-04-24 18:04:37 +02:00
2022-02-08 10:48:21 +01:00
2022-04-05 13:36:07 +02:00
2022-04-25 14:29:44 +02:00
2021-11-25 18:31:14 +01:00
2022-05-27 14:27:29 +01:00
2021-12-12 22:38:55 +01:00
2022-01-07 19:25:23 +01:00
2022-05-24 15:00:47 +02:00
2021-11-29 19:17:16 +01:00
2021-10-21 12:13:36 +02:00
2022-04-21 23:27:29 +02:00
2022-05-02 14:00:19 +02:00
2022-05-23 16:51:32 +02:00
2022-05-03 12:59:39 +02:00
2021-09-16 12:42:07 +02:00
2022-04-25 14:29:44 +02:00