cellog Mon Aug 11 03:53:57 2008 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/phar/tests/zip corrupt_009.phpt
/php-src/ext/phar/tests/zip/files corrupt3.php.inc
extralen_toolong.zip
Modified files:
/php-src/ext/phar/tests/zip/files corrupt_zipmaker.php.inc
Log:
increase code coverage
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc?r1=1.5&r2=1.5.2.1&diff_format=u
Index: php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc
diff -u php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc:1.5
php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc:1.5.2.1
--- php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc:1.5 Sat Apr
19 06:18:12 2008
+++ php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc Mon Aug 11
03:53:57 2008
@@ -26,7 +26,7 @@
* @author Vincent Lascaux <[EMAIL PROTECTED]>
* @copyright 1997-2005 The PHP Group
* @license http://www.gnu.org/copyleft/lesser.html LGPL
- * @version CVS: $Id: corrupt_zipmaker.php.inc,v 1.5 2008/04/19 06:18:12
cellog Exp $
+ * @version CVS: $Id: corrupt_zipmaker.php.inc,v 1.5.2.1 2008/08/11
03:53:57 cellog Exp $
* @link http://pear.php.net/package/File_Archive
*/
@@ -237,6 +237,15 @@
$filename . $comment;
$offset = strlen($central);
break;
+ case 'extralen1' :
+ $extra = 'nu' . 0xffff; // way huge size
+ $central = "PK\x01\x02\x00\x00\x14\x00\x00\x00"
. pack('v', $compmethod) .
+ $mtime .
+ pack("VVVvvvvvVV", $crc32,
$complength, $uncomplength, strlen($filename),
strlen($extra),strlen($comment),0x00,0x00,
+ 0x0000, $this->offset).
+ $filename . $extra . $comment;
+ $offset = strlen($central);
+ break;
}
return $central;
}
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/corrupt_009.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/corrupt_009.phpt
+++ php-src/ext/phar/tests/zip/corrupt_009.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/corrupt3.php.inc?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/files/corrupt3.php.inc
+++ php-src/ext/phar/tests/zip/files/corrupt3.php.inc
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/extralen_toolong.zip?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/files/extralen_toolong.zip
+++ php-src/ext/phar/tests/zip/files/extralen_toolong.zip
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php