diff options
author | Antony Dovgal <tony2001@php.net> | 2009-05-01 09:22:16 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2009-05-01 09:22:16 +0000 |
commit | d3438bf9f57d9f0a6e14852e20666b97de760a87 (patch) | |
tree | a2eb00b46593f22e84806ed33e09232454081e9c /ext/phar/phar.c | |
parent | 2b049552d08b27743848e931e71318e81996627d (diff) | |
download | php-git-d3438bf9f57d9f0a6e14852e20666b97de760a87.tar.gz |
initialize ext_len
Diffstat (limited to 'ext/phar/phar.c')
-rw-r--r-- | ext/phar/phar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c index df3d0997d7..a0ad66f53d 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1263,7 +1263,7 @@ int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int al if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1 TSRMLS_CC)) { if (error) { if (ext_len == -2) { - spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be created from local files", fname); + spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be created from local files", fname); } else { spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised", fname); } @@ -1897,6 +1897,7 @@ int phar_detect_phar_fname_ext(const char *filename, int filename_len, const cha const char *pos, *slash; *ext_str = NULL; + *ext_len = 0; if (!filename_len || filename_len == 1) { return FAILURE; |