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

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 880 bytes
Line 
1--TEST--
2Test jpeg2wbmp() function : wrong origin filename param
3--CREDITS--
4Levi Fukumori <levi [at] fukumori [dot] com [dot] br>
5#testfest PHPSP on 2009-06-20
6--SKIPIF--
7<?php
8if(!extension_loaded('gd')) {
9    die('skip gd extension is not loaded');
10}
11if(!function_exists('jpeg2wbmp')) {
12    die('skip jpeg2wbmp function is not available');
13}
14?>
15--FILE--
16<?php
17$file = dirname(__FILE__) .'/simpletext私はガラスを食べられたす.wbmp';
18jpeg2wbmp('', $file, 20, 120, 8);
19jpeg2wbmp(null, $file, 20, 120, 8);
20jpeg2wbmp(false, $file, 20, 120, 8);
21?>
22--EXPECTF--
23Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
24
25Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
26
27Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
28--CLEAN--
29<?php
30unlink(dirname(__FILE__) .'/simpletext私はガラスを食べられたす.wbmp');
31?>
Note: See TracBrowser for help on using the repository browser.