summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/phar/phar_object.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index f723197527..e8f9c4c481 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -712,15 +712,8 @@ PHP_METHOD(Phar, webPhar)
switch (Z_TYPE(retval)) {
case IS_STRING:
efree(entry);
-
- if (fci.retval != &retval) {
- entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval));
- entry_len = Z_STRLEN_P(fci.retval);
- } else {
- entry = Z_STRVAL(retval);
- entry_len = Z_STRLEN(retval);
- }
-
+ entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval));
+ entry_len = Z_STRLEN_P(fci.retval);
break;
case IS_TRUE:
case IS_FALSE: