com php-src: Retruning SUCCESS/FAILURE instead of int: UPGRADING ext/phar/php_phar.h ext/phar/util.c

From: Date: Fri, 18 Oct 2013 02:33:53 +0000
Subject: com php-src: Retruning SUCCESS/FAILURE instead of int: UPGRADING ext/phar/php_phar.h ext/phar/util.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73697@lists.php.net to get a copy of this message
Commit: 4417421ab6133ce0658e285a4e48d93a27931820 Author: Xinchen Hui <laruence@php.net> Fri, 18 Oct 2013 10:33:53 +0800 Parents: 06994a419d625291c2ae071e3b22716901b45cf6 Branches: PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4417421ab6133ce0658e285a4e48d93a27931820 Log: Retruning SUCCESS/FAILURE instead of int Changed paths: M UPGRADING M ext/phar/php_phar.h M ext/phar/util.c Diff: diff --git a/UPGRADING b/UPGRADING index 39fe2d7..43e4118 100755 --- a/UPGRADING +++ b/UPGRADING @@ -343,6 +343,8 @@ None - Intl: - This extension now requires ICU 4.0+.. +- Phar: + - Added ability of resolving alias created by Phar::map ======================================== 9. New Global Constants diff --git a/ext/phar/php_phar.h b/ext/phar/php_phar.h index 4146e28..f8325d0 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 e9f1b16..dc4508f 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; } /* }}} */

« previous php.cvs (#73697) next »