mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
remove unreachable code
This commit is contained in:
parent
cb8f158cd5
commit
379bcf1f14
1 changed files with 2 additions and 6 deletions
|
@ -157,12 +157,8 @@ static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char
|
||||||
|
|
||||||
path_info = Z_STRVAL_PP(stuff);
|
path_info = Z_STRVAL_PP(stuff);
|
||||||
code = Z_STRLEN_PP(stuff);
|
code = Z_STRLEN_PP(stuff);
|
||||||
if (entry[0] != '/') {
|
ZVAL_STRINGL(*stuff, entry, entry_len, 1);
|
||||||
Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry);
|
|
||||||
} else {
|
|
||||||
ZVAL_STRINGL(*stuff, entry, entry_len, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
MAKE_STD_ZVAL(temp);
|
MAKE_STD_ZVAL(temp);
|
||||||
ZVAL_STRINGL(temp, path_info, code, 0);
|
ZVAL_STRINGL(temp, path_info, code, 0);
|
||||||
zend_hash_update(Z_ARRVAL_PP(_SERVER), newname, sizeof(newname), (void *) &temp, sizeof(zval **), NULL);
|
zend_hash_update(Z_ARRVAL_PP(_SERVER), newname, sizeof(newname), (void *) &temp, sizeof(zval **), NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue