source: src/router/php7/ext/gd/tests/001-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 670 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.