mirror of
https://github.com/php/php-src.git
synced 2025-01-19 18:24:15 +08:00
Fix a few warnings
This commit is contained in:
parent
df4fdeb54e
commit
bc906117bb
@ -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)) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user