diff options
| author | Dmitry Stogov <dmitry@php.net> | 2011-09-13 13:29:35 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2011-09-13 13:29:35 +0000 |
| commit | 4a25a7740d62c9ec0318001c3f6d6b3ae01d96ad (patch) | |
| tree | 3e5041ac2a54ff635c9e77d97e2a14a2f1c860c6 /main/fopen_wrappers.c | |
| parent | 3a3c2942d254be88b82fc871ef4fa9698e921ac7 (diff) | |
| download | php-git-4a25a7740d62c9ec0318001c3f6d6b3ae01d96ad.tar.gz | |
Fixed ZE specific compile warnings (Bug #55629)
Diffstat (limited to 'main/fopen_wrappers.c')
| -rw-r--r-- | main/fopen_wrappers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index f4d122bbbb..19313561fa 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -565,7 +565,7 @@ PHPAPI char *php_resolve_path(const char *filename, int filename_length, const c /* check in calling scripts' current working directory as a fall back case */ if (zend_is_executing(TSRMLS_C)) { - char *exec_fname = zend_get_executed_filename(TSRMLS_C); + const char *exec_fname = zend_get_executed_filename(TSRMLS_C); int exec_fname_length = strlen(exec_fname); while ((--exec_fname_length >= 0) && !IS_SLASH(exec_fname[exec_fname_length])); @@ -611,7 +611,7 @@ PHPAPI char *php_resolve_path(const char *filename, int filename_length, const c PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC) { char *pathbuf, *ptr, *end; - char *exec_fname; + const char *exec_fname; char trypath[MAXPATHLEN]; FILE *fp; int path_length; |
