]> granicus.if.org Git - php/commitdiff
- remove remaining "mode" arguments in the old api
authorPierre Joye <pajoye@php.net>
Sun, 22 Oct 2006 00:43:23 +0000 (00:43 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 22 Oct 2006 00:43:23 +0000 (00:43 +0000)
ext/zip/php_zip.c

index da939a019d32369c952f08409675e0237a76b0cc..da971a4ac543b860cf06d933f3cb071c61774da3 100644 (file)
@@ -631,7 +631,7 @@ PHP_FUNCTION(zip_close)
 }
 /* }}} */
 
-/* {{{ proto resource zip_read(resource zip [, int flags])
+/* {{{ proto resource zip_read(resource zip)
    Returns the next file in the archive */
 PHP_FUNCTION(zip_read)
 {
@@ -641,7 +641,7 @@ PHP_FUNCTION(zip_read)
        long flags = 0;
        zip_rsrc *rsrc_int;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zip_dp, &flags) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zip_dp) == FAILURE) {
                return;
        }
        ZEND_FETCH_RESOURCE(rsrc_int, zip_rsrc *, &zip_dp, -1, le_zip_dir_name, le_zip_dir);
@@ -719,7 +719,7 @@ PHP_FUNCTION(zip_entry_close)
 }
 /* }}} */
 
-/* {{{ proto mixed zip_entry_read(resource zip_entry [, int len [, int mode]])
+/* {{{ proto mixed zip_entry_read(resource zip_entry [, int len])
    Read from an open directory entry */
 PHP_FUNCTION(zip_entry_read)
 {