Skip to content

Commit da906ee

Browse files
authored
phar: Remove duplicated error-handling code (#20137)
This is already handled by the switch below.
1 parent b272021 commit da906ee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/phar/phar_object.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,6 @@ PHP_METHOD(Phar, webPhar)
703703
goto cleanup_fail;
704704
}
705705

706-
if (Z_TYPE_P(rewrite_fci.retval) == IS_UNDEF || Z_TYPE(retval) == IS_UNDEF) {
707-
zend_throw_exception_ex(phar_ce_PharException, 0, "phar error: rewrite callback must return a string or false");
708-
goto cleanup_fail;
709-
}
710-
711706
switch (Z_TYPE(retval)) {
712707
case IS_STRING:
713708
efree(entry);

0 commit comments

Comments
 (0)