com php-src: fixed PHPT that is always being skipped or otherwise would fail: ext/gd/tests/imagewebp_nullbyte_injection.phpt
| From: | Christoph Michael Becker | Date: | Sat, 18 Jul 2015 19:33:20 +0000 |
| Subject: | com php-src: fixed PHPT that is always being skipped or otherwise would fail: ext/gd/tests/imagewebp_nullbyte_injection.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88029@lists.php.net to get a copy of this message | ||
Commit: a66efb0b154236e63f98b95bd12bc31fea90500c
Author: Christoph M. Becker <cmb@php.net> Sat, 18 Jul 2015 21:33:20 +0200
Parents: 37e03f6b32832ebf51429d1a9ad71a7cb9068a66
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a66efb0b154236e63f98b95bd12bc31fea90500c
Log:
fixed PHPT that is always being skipped or otherwise would fail
Changed paths:
M ext/gd/tests/imagewebp_nullbyte_injection.phpt
Diff:
diff --git a/ext/gd/tests/imagewebp_nullbyte_injection.phpt
b/ext/gd/tests/imagewebp_nullbyte_injection.phpt
index 166beb1..1808e8f 100644
--- a/ext/gd/tests/imagewebp_nullbyte_injection.phpt
+++ b/ext/gd/tests/imagewebp_nullbyte_injection.phpt
@@ -8,7 +8,7 @@ rmdir($tempdir);
<?php
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
$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';
}
?>
@@ -30,9 +30,9 @@ imagewebp($image, $temp);
var_dump(file_exists($tempdir. "/test1"));
var_dump(file_exists($tempdir. "/test1.tmp"));
foreach (glob($tempdir . "/test*") as $file ) { unlink($file); }
-
+?>
--EXPECTF--
-imagewbmp TEST
+imagewebp TEST
Warning: imagewebp(): Invalid 2nd parameter, filename must not contain null bytes in %s on line %d
bool(false)