mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Changed BCG memory allocation to be forcibly released in PHP_GSHUTDOWN_FUNCTION regardless of refcount. Fixes #17398 Closes #17615
11 lines
221 B
PHP
11 lines
221 B
PHP
--TEST--
|
|
GH-17398 (bcmul memory leak)
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--FILE--
|
|
<?php
|
|
bcmul('0', '0', 2147483647);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
|