cvs: php-src(PHP_5_3) /ext/phar/tests/zip corrupt_010.phpt /ext/phar/tests/zip/files corrupt3.php.inc corrupt_zipmaker.php.inc disknumber.zip
extralen_toolong.zip
| From: | Greg Beaver | Date: | Mon, 11 Aug 2008 22:43:02 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/phar/tests/zip corrupt_010.phpt /ext/phar/tests/zip/files corrupt3.php.inc corrupt_zipmaker.php.inc disknumber.zip extralen_toolong.zip |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-52246@lists.php.net to get a copy of this message | ||
cellog Mon Aug 11 22:43:02 2008 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/phar/tests/zip corrupt_010.phpt
/php-src/ext/phar/tests/zip/files disknumber.zip
Modified files:
/php-src/ext/phar/tests/zip/files corrupt3.php.inc
corrupt_zipmaker.php.inc
extralen_toolong.zip
Log:
increase code coverage
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/corrupt3.php.inc?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/phar/tests/zip/files/corrupt3.php.inc
diff -u php-src/ext/phar/tests/zip/files/corrupt3.php.inc:1.1.2.1
php-src/ext/phar/tests/zip/files/corrupt3.php.inc:1.1.2.2
--- php-src/ext/phar/tests/zip/files/corrupt3.php.inc:1.1.2.1 Mon Aug 11 03:53:57 2008
+++ php-src/ext/phar/tests/zip/files/corrupt3.php.inc Mon Aug 11 22:43:02 2008
@@ -3,4 +3,7 @@
$a = new corrupt_zipmaker;
$a->addFile('hi', null, 'hii', null, null, null, 'extralen1');
$a->writeZip(dirname(__FILE__) . '/extralen_toolong.zip');
+$a = new corrupt_zipmaker;
+$a->addFile('hi', null, 'hii');
+$a->writeZip(dirname(__FILE__) . '/disknumber.zip', 'disknumber');
?>
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc?r1=1.5.2.1&r2=1.5.2.2&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.2.1
php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc:1.5.2.2
--- php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc:1.5.2.1 Mon Aug 11 03:53:57 2008
+++ php-src/ext/phar/tests/zip/files/corrupt_zipmaker.php.inc Mon Aug 11 22:43:02 2008
@@ -26,7 +26,7 @@
* @author Vincent Lascaux <vincentlascaux@php.net>
* @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.2.1 2008/08/11 03:53:57 cellog Exp $
+ * @version CVS: $Id: corrupt_zipmaker.php.inc,v 1.5.2.2 2008/08/11 22:43:02 cellog Exp $
* @link http://pear.php.net/package/File_Archive
*/
@@ -288,6 +288,12 @@
$this->offset, strlen($this->start),
strlen($this->comment)) . $this->comment;
break;
+ case 'disknumber' :
+ $write .= "PK\x05\x06\x01\x00\x01\x00" .
+ pack("vvVVv", $this->count, $this->count,
+ $this->offset, strlen($this->start),
+ strlen($this->comment)) . $this->comment;
+ break;
case 'count1' :
$write .= "PK\x05\x06\x00\x00\x00\x00" .
pack("vvVVv", $this->count + 1, $this->count,
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/extralen_toolong.zip?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/phar/tests/zip/files/extralen_toolong.zip
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/corrupt_010.phpt?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/corrupt_010.phpt
+++ php-src/ext/phar/tests/zip/corrupt_010.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/zip/files/disknumber.zip?view=markup&rev=1.1
Index: php-src/ext/phar/tests/zip/files/disknumber.zip
+++ php-src/ext/phar/tests/zip/files/disknumber.zip