[prev in list] [next in list] [prev in thread] [next in thread]
List: php-cvs
Subject: [PHP-CVS] cvs: php4 /ext/standard ftp_fopen_wrapper.c http_fopen_wrapper.c php_fopen_wrappers.h /ex
From: "Zeev Suraski" <zeev () zend ! com>
Date: 2001-07-31 23:32:24
[Download RAW message or body]
zeev Tue Jul 31 19:32:24 2001 EDT
Modified files:
/php4/ext/standard ftp_fopen_wrapper.c http_fopen_wrapper.c
php_fopen_wrappers.h
/php4/ext/zlib php_zlib.h zlib_fopen_wrapper.c
/php4/main fopen_wrappers.c
Log:
Fix some warnings
Index: php4/ext/standard/ftp_fopen_wrapper.c
diff -u php4/ext/standard/ftp_fopen_wrapper.c:1.8 \
php4/ext/standard/ftp_fopen_wrapper.c:1.9
--- php4/ext/standard/ftp_fopen_wrapper.c:1.8 Tue Jul 31 03:09:45 2001
+++ php4/ext/standard/ftp_fopen_wrapper.c Tue Jul 31 19:32:24 2001
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: ftp_fopen_wrapper.c,v 1.8 2001/07/31 07:09:45 zeev Exp $ */
+/* $Id: ftp_fopen_wrapper.c,v 1.9 2001/07/31 23:32:24 zeev Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -79,7 +79,7 @@
/* {{{ php_fopen_url_wrap_ftp
*/
-FILE *php_fopen_url_wrap_ftp(char *path, char *mode, int options, int *issock, int \
*socketd, char **opened_path TSRMLS_DC) +FILE *php_fopen_url_wrap_ftp(const char \
*path, char *mode, int options, int *issock, int *socketd, char **opened_path \
TSRMLS_DC) {
FILE *fp=NULL;
php_url *resource=NULL;
Index: php4/ext/standard/http_fopen_wrapper.c
diff -u php4/ext/standard/http_fopen_wrapper.c:1.15 \
php4/ext/standard/http_fopen_wrapper.c:1.16
--- php4/ext/standard/http_fopen_wrapper.c:1.15 Tue Jul 31 03:09:45 2001
+++ php4/ext/standard/http_fopen_wrapper.c Tue Jul 31 19:32:24 2001
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.15 2001/07/31 07:09:45 zeev Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.16 2001/07/31 23:32:24 zeev Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -70,7 +70,7 @@
/* {{{ php_fopen_url_wrap_http
*/
-FILE *php_fopen_url_wrap_http(char *path, char *mode, int options, int *issock, int \
*socketd, char **opened_path TSRMLS_DC) +FILE *php_fopen_url_wrap_http(const char \
*path, char *mode, int options, int *issock, int *socketd, char **opened_path \
TSRMLS_DC) {
FILE *fp=NULL;
php_url *resource=NULL;
Index: php4/ext/standard/php_fopen_wrappers.h
diff -u php4/ext/standard/php_fopen_wrappers.h:1.3 \
php4/ext/standard/php_fopen_wrappers.h:1.4
--- php4/ext/standard/php_fopen_wrappers.h:1.3 Tue Jul 31 03:09:45 2001
+++ php4/ext/standard/php_fopen_wrappers.h Tue Jul 31 19:32:24 2001
@@ -18,13 +18,13 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_fopen_wrappers.h,v 1.3 2001/07/31 07:09:45 zeev Exp $ */
+/* $Id: php_fopen_wrappers.h,v 1.4 2001/07/31 23:32:24 zeev Exp $ */
#ifndef PHP_FOPEN_WRAPPERS_H
#define PHP_FOPEN_WRAPPERS_H
-FILE *php_fopen_url_wrap_http(char *, char *, int, int *, int *, char ** TSRMLS_DC);
-FILE *php_fopen_url_wrap_ftp(char *, char *, int, int *, int *, char ** TSRMLS_DC);
-FILE *php_fopen_url_wrap_php(char *, char *, int, int *, int *, char ** TSRMLS_DC);
+FILE *php_fopen_url_wrap_http(const char *, char *, int, int *, int *, char ** \
TSRMLS_DC); +FILE *php_fopen_url_wrap_ftp(const char *, char *, int, int *, int *, \
char ** TSRMLS_DC); +FILE *php_fopen_url_wrap_php(const char *, char *, int, int *, \
int *, char ** TSRMLS_DC);
#endif
Index: php4/ext/zlib/php_zlib.h
diff -u php4/ext/zlib/php_zlib.h:1.18 php4/ext/zlib/php_zlib.h:1.19
--- php4/ext/zlib/php_zlib.h:1.18 Tue Jul 31 03:09:45 2001
+++ php4/ext/zlib/php_zlib.h Tue Jul 31 19:32:24 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_zlib.h,v 1.18 2001/07/31 07:09:45 zeev Exp $ */
+/* $Id: php_zlib.h,v 1.19 2001/07/31 23:32:24 zeev Exp $ */
#ifndef PHP_ZLIB_H
#define PHP_ZLIB_H
@@ -64,7 +64,7 @@
PHP_FUNCTION(gzencode);
PHP_FUNCTION(ob_gzhandler);
-FILE *zlib_fopen_wrapper(char *path, char *mode, int options, int *issock, int \
*socketd, char **opened_path TSRMLS_DC); +FILE *zlib_fopen_wrapper(const char *path, \
char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC); \
int php_enable_output_compression(int buffer_size);
Index: php4/ext/zlib/zlib_fopen_wrapper.c
diff -u php4/ext/zlib/zlib_fopen_wrapper.c:1.5 php4/ext/zlib/zlib_fopen_wrapper.c:1.6
--- php4/ext/zlib/zlib_fopen_wrapper.c:1.5 Tue Jul 31 03:09:46 2001
+++ php4/ext/zlib/zlib_fopen_wrapper.c Tue Jul 31 19:32:24 2001
@@ -15,7 +15,7 @@
| Authors: Hartmut Holzgraefe <hartmut@six.de> |
+----------------------------------------------------------------------+
*/
-/* $Id: zlib_fopen_wrapper.c,v 1.5 2001/07/31 07:09:46 zeev Exp $ */
+/* $Id: zlib_fopen_wrapper.c,v 1.6 2001/07/31 23:32:24 zeev Exp $ */
#define IS_EXT_MODULE
#define _GNU_SOURCE
@@ -59,7 +59,7 @@
, gz_closer
};
-FILE *zlib_fopen_wrapper(char *path, char *mode, int options, int *issock, int \
*socketd, char **opened_path TSRMLS_DC) +FILE *zlib_fopen_wrapper(const char *path, \
char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC) {
struct gz_cookie *gc = NULL;
FILE *fp;
Index: php4/main/fopen_wrappers.c
diff -u php4/main/fopen_wrappers.c:1.132 php4/main/fopen_wrappers.c:1.133
--- php4/main/fopen_wrappers.c:1.132 Tue Jul 31 03:09:46 2001
+++ php4/main/fopen_wrappers.c Tue Jul 31 19:32:24 2001
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen_wrappers.c,v 1.132 2001/07/31 07:09:46 zeev Exp $ */
+/* $Id: fopen_wrappers.c,v 1.133 2001/07/31 23:32:24 zeev Exp $ */
/* {{{ includes
*/
@@ -87,7 +87,7 @@
/* {{{ php_register_url_wrapper
*/
-PHPAPI int php_register_url_wrapper(char *protocol, php_fopen_url_wrapper_t wrapper \
TSRMLS_DC) +PHPAPI int php_register_url_wrapper(const char *protocol, \
php_fopen_url_wrapper_t wrapper TSRMLS_DC) {
if(PG(allow_url_fopen)) {
return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol), \
&wrapper, sizeof(wrapper), NULL);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net
For additional commands, e-mail: php-cvs-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic