mirror of
https://github.com/php/php-src.git
synced 2024-12-20 07:20:33 +08:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
17 lines
447 B
PHP
17 lines
447 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.
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--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)
|