From ef0139c866c0293399adad6143466b14d54bf5ad Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 19 Apr 2008 17:24:41 +0000 Subject: [PATCH] fix ZTS build --- ext/phar/phar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 2d630568b6..a742caee39 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1541,7 +1541,7 @@ int phar_detect_phar_fname_ext(const char *filename, int check_length, const cha continue; } - if (keylen <= filename_len && !memcmp(key, filename, keylen - 1)) { + if (keylen <= (uint) filename_len && !memcmp(key, filename, keylen - 1)) { /* found plain map, so we grab the extension, if any */ if (is_complete && keylen != filename_len + 1) { continue; @@ -1574,7 +1574,7 @@ int phar_detect_phar_fname_ext(const char *filename, int check_length, const cha /* next check for alias in first segment */ pos = strchr(filename, '/'); if (pos) { - if (zend_hash_exists(&(PHAR_GLOBALS->phar_alias_map), filename, pos - filename)) { + if (zend_hash_exists(&(PHAR_GLOBALS->phar_alias_map), (char *) filename, pos - filename)) { *ext_str = pos; *ext_len = -1; return FAILURE; @@ -1783,7 +1783,7 @@ int phar_split_fname(char *filename, int filename_len, char **arch, int *arch_le } ext_len = 0; - if (phar_detect_phar_fname_ext(filename, 0, &ext_str, &ext_len, executable, for_create, 0) == FAILURE) { + if (phar_detect_phar_fname_ext(filename, 0, &ext_str, &ext_len, executable, for_create, 0 TSRMLS_CC) == FAILURE) { if (ext_len != -1) { if (!ext_str) { /* no / detected, restore arch for error message */ -- 2.40.0