Re: cvs: php-src /ext/zlib zlib.c

From: Date: Sat, 08 Jul 2006 01:42:22 +0000
Subject: Re: cvs: php-src /ext/zlib zlib.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-39067@lists.php.net to get a copy of this message
+/* {{{ proto array gzfile(string filename [, int use_include_path]) U + Read and uncompress entire .gz-file into an array */ PHP_FUNCTION(gzfile) { char *filename; int filename_len; + zend_uchar filename_type; long flags = 0; char buf[8192]; register int i = 0; int use_include_path = 0; php_stream *stream; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &flags) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t|l", &filename, &filename_len, &filename_type, &flags) == FAILURE) { return; }
When you use 't' flag, the storage type should be void*, not char*. -Andrei

« previous php.cvs (#39067) next »