cvs: pecl /phar phar_object.c /phar/tests phar_oo_getcontents.phpt phar_oo_getcontentsgz.phpt

From: Date: Thu, 10 Apr 2008 13:41:29 +0000
Subject: cvs: pecl /phar phar_object.c /phar/tests phar_oo_getcontents.phpt phar_oo_getcontentsgz.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10335@lists.php.net to get a copy of this message
cellog Thu Apr 10 13:41:29 2008 UTC Modified files: /pecl/phar phar_object.c /pecl/phar/tests phar_oo_getcontents.phpt phar_oo_getcontentsgz.phpt Log: s/getContents/getContent/ http://cvs.php.net/viewvc.cgi/pecl/phar/phar_object.c?r1=1.198&r2=1.199&diff_format=u Index: pecl/phar/phar_object.c diff -u pecl/phar/phar_object.c:1.198 pecl/phar/phar_object.c:1.199 --- pecl/phar/phar_object.c:1.198 Thu Apr 10 13:40:25 2008 +++ pecl/phar/phar_object.c Thu Apr 10 13:41:28 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: phar_object.c,v 1.198 2008/04/10 13:40:25 cellog Exp $ */ +/* $Id: phar_object.c,v 1.199 2008/04/10 13:41:28 cellog Exp $ */ #include "phar_internal.h" #include "func_interceptors.h" @@ -3586,10 +3586,10 @@ } /* }}} */ -/* {{{ proto string PharFileInfo::getContents() +/* {{{ proto string PharFileInfo::getContent() * return the complete file contents of the entry (like file_get_contents) */ -PHP_METHOD(PharFileInfo, getContents) +PHP_METHOD(PharFileInfo, getContent) { char *error; php_stream *fp; @@ -3993,7 +3993,7 @@ PHP_ME(PharFileInfo, __destruct, NULL, 0) PHP_ME(PharFileInfo, chmod, arginfo_entry_chmod, 0) PHP_ME(PharFileInfo, delMetadata, NULL, 0) - PHP_ME(PharFileInfo, getContents, NULL, 0) + PHP_ME(PharFileInfo, getContent, NULL, 0) PHP_ME(PharFileInfo, getCompressedSize, NULL, 0) PHP_ME(PharFileInfo, getCRC32, NULL, 0) PHP_ME(PharFileInfo, getMetadata, NULL, 0) http://cvs.php.net/viewvc.cgi/pecl/phar/tests/phar_oo_getcontents.phpt?r1=1.1&r2=1.2&diff_format=u Index: pecl/phar/tests/phar_oo_getcontents.phpt diff -u pecl/phar/tests/phar_oo_getcontents.phpt:1.1 pecl/phar/tests/phar_oo_getcontents.phpt:1.2 --- pecl/phar/tests/phar_oo_getcontents.phpt:1.1 Wed Apr 9 18:12:40 2008 +++ pecl/phar/tests/phar_oo_getcontents.phpt Thu Apr 10 13:41:28 2008 @@ -1,5 +1,5 @@ --TEST-- -Phar object: getContents() +Phar object: getContent() --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> @@ -12,7 +12,7 @@ $phar = new Phar($fname); $phar['a'] = 'file contents this works'; -echo $phar['a']->getContents() . "\n"; +echo $phar['a']->getContent() . "\n"; ?> ===DONE=== --CLEAN-- http://cvs.php.net/viewvc.cgi/pecl/phar/tests/phar_oo_getcontentsgz.phpt?r1=1.1&r2=1.2&diff_format=u Index: pecl/phar/tests/phar_oo_getcontentsgz.phpt diff -u pecl/phar/tests/phar_oo_getcontentsgz.phpt:1.1 pecl/phar/tests/phar_oo_getcontentsgz.phpt:1.2 --- pecl/phar/tests/phar_oo_getcontentsgz.phpt:1.1 Wed Apr 9 18:12:40 2008 +++ pecl/phar/tests/phar_oo_getcontentsgz.phpt Thu Apr 10 13:41:28 2008 @@ -1,5 +1,5 @@ --TEST-- -Phar object: getContents() (verify it works with compression) +Phar object: getContent() (verify it works with compression) --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> @@ -18,7 +18,7 @@ copy($fname, $fname2); $phar2 = new Phar($fname2); var_dump($phar2['a']->isCompressed()); -echo $phar2['a']->getContents() . "\n"; +echo $phar2['a']->getContent() . "\n"; ?> ===DONE=== --CLEAN--

« previous php.pecl.cvs (#10335) next »