FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge branch 'PHP-5.5' · EndlessCoding/php-src@15eabbb · GitHub

forked from php/php-src

Commit 15eabbb

Browse files
committed
Merge branch 'PHP-5.5'
2 parents 7fe370f + 3d4ef50 commit 15eabbb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ext/phar/util.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,8 @@ phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry,
929929

930930
PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC) /* {{{ */ {
931931
phar_archive_data **fd_ptr;
932-
if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) {
932+
if (PHAR_GLOBALS->phar_alias_map.arBuckets
933+
&& SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) {
933934
*filename = (*fd_ptr)->fname;
934935
*filename_len = (*fd_ptr)->fname_len;
935936
return SUCCESS;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL