1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext/gd/tests/001.phpt
T
Máté Kocsis d1764ca330 Make error messages more consistent by fixing capitalization
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00

26 lines
551 B
PHP

--TEST--
imagecreatefrompng() and empty/missing file
--SKIPIF--
<?php if (!function_exists("imagecreatefrompng")) print "skip"; ?>
--FILE--
<?php
$file = __DIR__."/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