[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /zip php_zip.c
From: "Pierre-Alain Joye" <pajoye () php ! net>
Date: 2006-02-28 22:16:08
Message-ID: cvspajoye1141164968 () cvsserver
[Download RAW message or body]
pajoye Tue Feb 28 22:16:08 2006 UTC
Modified files:
/pecl/zip php_zip.c
Log:
- remove the mode for getstream, "rb" is the only one
http://cvs.php.net/viewcvs.cgi/pecl/zip/php_zip.c?r1=1.19&r2=1.20&diff_format=u
Index: pecl/zip/php_zip.c
diff -u pecl/zip/php_zip.c:1.19 pecl/zip/php_zip.c:1.20
--- pecl/zip/php_zip.c:1.19 Tue Feb 28 21:52:59 2006
+++ pecl/zip/php_zip.c Tue Feb 28 22:16:08 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_zip.c,v 1.19 2006/02/28 21:52:59 helly Exp $ */
+/* $Id: php_zip.c,v 1.20 2006/02/28 22:16:08 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1116,7 +1116,7 @@
}
/* }}} */
-/* {{{ proto resource getStream(string entryname, string mode)
+/* {{{ proto resource getStream(string entryname)
get a stream for the given entry */
ZIP_METHOD(zip, getStream)
{
@@ -1125,8 +1125,7 @@
struct zip_stat sb;
char *filename;
int filename_len;
- char *mode;
- int mode_len;
+ char *mode = "rb";
php_stream *stream;
ze_zip_object *obj;
@@ -1136,7 +1135,7 @@
ZIP_FROM_OBJECT(intern, this);
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &filename, \
&filename_len, &mode, &mode_len) == FAILURE) { + if \
(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == \
FAILURE) { WRONG_PARAM_COUNT;
return;
}
@@ -1266,7 +1265,7 @@
php_info_print_table_start();
{
php_info_print_table_row(2, "Zip", "enabled");
- php_info_print_table_row(2, "$Id: php_zip.c,v 1.19 2006/02/28 21:52:59 helly Exp \
$", "enabled"); + php_info_print_table_row(2, "$Id: php_zip.c,v 1.20 2006/02/28 \
22:16:08 pajoye Exp $", "enabled"); php_info_print_table_row(2, "Libzip version", \
"0.6.1"); }
php_info_print_table_end();
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic