cvs: php-src(PHP_5_2) /ext/zip/tests oo_getcomment.phpt

From: Date: Wed, 14 Mar 2007 11:02:29 +0000
Subject: cvs: php-src(PHP_5_2) /ext/zip/tests oo_getcomment.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43514@lists.php.net to get a copy of this message
pajoye Wed Mar 14 11:02:29 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/zip/tests oo_getcomment.phpt Log: - add more cases for getComment http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_getcomment.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: php-src/ext/zip/tests/oo_getcomment.phpt diff -u php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.2 php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.3 --- php-src/ext/zip/tests/oo_getcomment.phpt:1.1.2.2 Wed Nov 15 23:53:46 2006 +++ php-src/ext/zip/tests/oo_getcomment.phpt Wed Mar 14 11:02:29 2007 @@ -1,8 +1,8 @@ --TEST-- -Get Comment +getComment --SKIPIF-- <?php -/* $Id: oo_getcomment.phpt,v 1.1.2.2 2006/11/15 23:53:46 pajoye Exp $ */ +/* $Id: oo_getcomment.phpt,v 1.1.2.3 2007/03/14 11:02:29 pajoye Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- @@ -14,13 +14,23 @@ if (!$zip->open($file)) { exit('failed'); } +echo $zip->getArchiveComment() . "\n"; + $idx = $zip->locateName('foo'); echo $zip->getCommentName('foo') . "\n"; echo $zip->getCommentIndex($idx); +echo $zip->getCommentName('') . "\n"; +echo $zip->getCommentName() . "\n"; + $zip->close(); ?> --EXPECTF-- +Zip archive comment foo comment foo comment +Notice: ZipArchive::getCommentName(): Empty string as entry name in %s on line %d + + +Warning: ZipArchive::getCommentName() expects at least 1 parameter, 0 given in %s on line %d

« previous php.cvs (#43514) next »