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?> 32