diff options
Diffstat (limited to 'ext/gd/tests')
| -rw-r--r-- | ext/gd/tests/bug73161.gd2 | bin | 0 -> 26 bytes | |||
| -rw-r--r-- | ext/gd/tests/bug73161.phpt | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ext/gd/tests/bug73161.gd2 b/ext/gd/tests/bug73161.gd2 Binary files differnew file mode 100644 index 0000000000..f5084e4976 --- /dev/null +++ b/ext/gd/tests/bug73161.gd2 diff --git a/ext/gd/tests/bug73161.phpt b/ext/gd/tests/bug73161.phpt new file mode 100644 index 0000000000..42ad718606 --- /dev/null +++ b/ext/gd/tests/bug73161.phpt @@ -0,0 +1,18 @@ +--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=== |
