mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
a375d54785
Cf. PR #6787. Closes GH-6994.
15 lines
376 B
PHP
15 lines
376 B
PHP
--TEST--
|
|
Bug #73161 (imagecreatefromgd2() may leak memory)
|
|
--DESCRIPTION--
|
|
We're testing for a memory leak that might not even show up with valgrind.
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatefromgd2(__DIR__ . DIRECTORY_SEPARATOR . 'bug73161.gd2');
|
|
var_dump($im);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecreatefromgd2(): "%s" is not a valid GD2 file in %s on line %d
|
|
bool(false)
|