summaryrefslogtreecommitdiff
path: root/ext/phar
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-10-18 10:33:53 +0800
committerXinchen Hui <laruence@php.net>2013-10-18 10:33:53 +0800
commit4417421ab6133ce0658e285a4e48d93a27931820 (patch)
treef215076c5f351fea9b71a6ca4dd57911c0a28955 /ext/phar
parent06994a419d625291c2ae071e3b22716901b45cf6 (diff)
downloadphp-git-4417421ab6133ce0658e285a4e48d93a27931820.tar.gz
Retruning SUCCESS/FAILURE instead of int
Diffstat (limited to 'ext/phar')
-rw-r--r--ext/phar/php_phar.h1
-rw-r--r--ext/phar/util.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/phar/php_phar.h b/ext/phar/php_phar.h
index 4146e28f77..f8325d0c63 100644
--- a/ext/phar/php_phar.h
+++ b/ext/phar/php_phar.h
@@ -34,7 +34,6 @@ extern zend_module_entry phar_module_entry;
#define PHP_PHAR_API PHPAPI
#endif
-#define PHAR_HAVE_RESOLVE_ALIAS
PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC);
#endif /* PHP_PHAR_H */
diff --git a/ext/phar/util.c b/ext/phar/util.c
index e9f1b1673c..dc4508f91c 100644
--- a/ext/phar/util.c
+++ b/ext/phar/util.c
@@ -1190,9 +1190,9 @@ PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename,
if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) {
*filename = (*fd_ptr)->fname;
*filename_len = (*fd_ptr)->fname_len;
- return 1;
+ return SUCCESS;
}
- return 0;
+ return FAILURE;
}
/* }}} */