xref: /PHP-7.3/ext/gd/tests/001-mb.phpt (revision 782352c5)
1--TEST--
2imagecreatefrompng() and empty/missing file
3--SKIPIF--
4<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?>
5--FILE--
6<?php
7
8$file = dirname(__FILE__)."/001私はガラスを食べられます.test";
9@unlink($file);
10
11var_dump(imagecreatefrompng($file));
12touch($file);
13var_dump(imagecreatefrompng($file));
14
15@unlink($file);
16
17echo "Done\n";
18?>
19--EXPECTF--
20Warning: imagecreatefrompng(%s001私はガラスを食べられます.test): failed to open stream: No such file or directory in %s on line %d
21bool(false)
22
23Warning: imagecreatefrompng(): '%s001私はガラスを食べられます.test' is not a valid PNG file in %s on line %d
24bool(false)
25Done
26