xref: /PHP-8.0/ext/gd/tests/001-mb.phpt (revision 4e6fbb0a)
1--TEST--
2imagecreatefrompng() and empty/missing file
3--SKIPIF--
4<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?>
5--FILE--
6<?php
7
8$file = __DIR__."/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