cvs: php4 /main fopen_wrappers.c fopen_wrappers.h

From: Date: Mon, 19 Aug 2002 20:47:56 +0000
Subject: cvs: php4 /main fopen_wrappers.c fopen_wrappers.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13473@lists.php.net to get a copy of this message
zeev Mon Aug 19 16:47:56 2002 EDT Modified files: /php4/main fopen_wrappers.c fopen_wrappers.h Log: Fix a few warnings Index: php4/main/fopen_wrappers.c diff -u php4/main/fopen_wrappers.c:1.144 php4/main/fopen_wrappers.c:1.145 --- php4/main/fopen_wrappers.c:1.144 Sat May 11 15:58:40 2002 +++ php4/main/fopen_wrappers.c Mon Aug 19 16:47:55 2002 @@ -16,7 +16,7 @@ | Jim Winstead <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.c,v 1.144 2002/05/11 19:58:40 rasmus Exp $ */ +/* $Id: fopen_wrappers.c,v 1.145 2002/08/19 20:47:55 zeev Exp $ */ /* {{{ includes */ @@ -88,7 +88,7 @@ When open_basedir is NULL, always return 0 */ -PHPAPI int php_check_specific_open_basedir(char *basedir, char *path TSRMLS_DC) +PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC) { char resolved_name[MAXPATHLEN]; char resolved_basedir[MAXPATHLEN]; @@ -135,7 +135,7 @@ /* {{{ php_check_open_basedir */ -PHPAPI int php_check_open_basedir(char *path TSRMLS_DC) +PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC) { /* Only check when open_basedir is available */ if (PG(open_basedir) && *PG(open_basedir)) { Index: php4/main/fopen_wrappers.h diff -u php4/main/fopen_wrappers.h:1.37 php4/main/fopen_wrappers.h:1.38 --- php4/main/fopen_wrappers.h:1.37 Sun May 19 21:32:48 2002 +++ php4/main/fopen_wrappers.h Mon Aug 19 16:47:55 2002 @@ -15,7 +15,7 @@ | Author: Jim Winstead <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.h,v 1.37 2002/05/20 01:32:48 wez Exp $ */ +/* $Id: fopen_wrappers.h,v 1.38 2002/08/19 20:47:55 zeev Exp $ */ #ifndef FOPEN_WRAPPERS_H #define FOPEN_WRAPPERS_H @@ -26,8 +26,8 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC); PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC); -PHPAPI int php_check_open_basedir(char *path TSRMLS_DC); -PHPAPI int php_check_specific_open_basedir(char *basedir, char *path TSRMLS_DC); +PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC); +PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC); PHPAPI int php_check_safe_mode_include_dir(char *path TSRMLS_DC);

« previous php.cvs (#13473) next »