We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b272021 commit da906eeCopy full SHA for da906ee
ext/phar/phar_object.c
@@ -703,11 +703,6 @@ PHP_METHOD(Phar, webPhar)
703
goto cleanup_fail;
704
}
705
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
-
711
switch (Z_TYPE(retval)) {
712
case IS_STRING:
713
efree(entry);
0 commit comments