mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fixed PHPT that is always being skipped or otherwise would fail
This commit is contained in:
parent
37e03f6b32
commit
a66efb0b15
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ rmdir($tempdir);
|
||||||
<?php
|
<?php
|
||||||
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
|
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
|
||||||
$support = gd_info();
|
$support = gd_info();
|
||||||
if (!isset($support['WEBP Support']) || $support['WEBP Support'] === false) {
|
if (!isset($support['WebP Support']) || $support['WebP Support'] === false) {
|
||||||
print 'skip webp support not available';
|
print 'skip webp support not available';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -30,9 +30,9 @@ imagewebp($image, $temp);
|
||||||
var_dump(file_exists($tempdir. "/test1"));
|
var_dump(file_exists($tempdir. "/test1"));
|
||||||
var_dump(file_exists($tempdir. "/test1.tmp"));
|
var_dump(file_exists($tempdir. "/test1.tmp"));
|
||||||
foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
|
||||||
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
imagewbmp TEST
|
imagewebp TEST
|
||||||
|
|
||||||
Warning: imagewebp(): Invalid 2nd parameter, filename must not contain null bytes in %s on line %d
|
Warning: imagewebp(): Invalid 2nd parameter, filename must not contain null bytes in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue