]> granicus.if.org Git - php/commitdiff
Fix a few warnings
authorZeev Suraski <zeev@php.net>
Mon, 19 Aug 2002 20:47:55 +0000 (20:47 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 19 Aug 2002 20:47:55 +0000 (20:47 +0000)
main/fopen_wrappers.c
main/fopen_wrappers.h

index a4c3ca4f9b21ef7b63642673e1eb694187950f5c..ecfbc067be3db432e7e837ad34bc454a1cb81cda 100644 (file)
@@ -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)) {
index 3e2e84b19930674b433e628e703360c7df96a2d6..0f4916293e829233a4732f3bc0bac065eca91c93 100644 (file)
@@ -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);