diff options
Diffstat (limited to 'ext/gd/tests/001-mb.phpt')
-rw-r--r-- | ext/gd/tests/001-mb.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/gd/tests/001-mb.phpt b/ext/gd/tests/001-mb.phpt new file mode 100644 index 0000000000..743df7d2c7 --- /dev/null +++ b/ext/gd/tests/001-mb.phpt @@ -0,0 +1,25 @@ +--TEST-- +imagecreatefrompng() and empty/missing file +--SKIPIF-- +<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?> +--FILE-- +<?php + +$file = dirname(__FILE__)."/001私はガラスを食べられます.test"; +@unlink($file); + +var_dump(imagecreatefrompng($file)); +touch($file); +var_dump(imagecreatefrompng($file)); + +@unlink($file); + +echo "Done\n"; +?> +--EXPECTF-- +Warning: imagecreatefrompng(%s001私はガラスを食べられます.test): failed to open stream: No such file or directory in %s on line %d +bool(false) + +Warning: imagecreatefrompng(): '%s001私はガラスを食べられます.test' is not a valid PNG file in %s on line %d +bool(false) +Done |