From bc906117bba35c95ebdb6a13428fd1f9669133fb Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 19 Aug 2002 20:47:55 +0000 Subject: [PATCH] Fix a few warnings --- main/fopen_wrappers.c | 4 ++-- main/fopen_wrappers.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index a4c3ca4f9b..ecfbc067be 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -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 @@ PHPAPI int php_check_specific_open_basedir(char *basedir, char *path TSRMLS_DC) /* {{{ 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)) { diff --git a/main/fopen_wrappers.h b/main/fopen_wrappers.h index 3e2e84b199..0f4916293e 100644 --- a/main/fopen_wrappers.h +++ b/main/fopen_wrappers.h @@ -26,8 +26,8 @@ BEGIN_EXTERN_C() 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); -- 2.40.0