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--
23Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d
24
25Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
26
27Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d
28
29Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
30
31Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d
32
33Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d
34--CLEAN--
35<?php
36unlink(dirname(__FILE__) .'/simpletext私はガラスを食べられます.wbmp');
37?>
38