mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
19 lines
469 B
PHP
19 lines
469 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);
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Warning: imagecreatefromgd2(): '%s' is not a valid GD2 file in %s on line %d
|
|
bool(false)
|
|
===DONE===
|