We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f543f49 + 47bec0c commit 89399adCopy full SHA for 89399ad
1 file changed
ext/phar/phar_object.c
@@ -697,12 +697,15 @@ PHP_METHOD(Phar, webPhar)
697
rewrite_fci.retval = &retval;
698
699
if (FAILURE == zend_call_function(&rewrite_fci, &rewrite_fcc)) {
700
+ zval_ptr_dtor_str(¶ms);
701
if (!EG(exception)) {
702
zend_throw_exception_ex(phar_ce_PharException, 0, "phar error: failed to call rewrite callback");
703
}
704
goto cleanup_fail;
705
706
707
708
+
709
switch (Z_TYPE(retval)) {
710
case IS_STRING:
711
efree(entry);
@@ -723,7 +726,6 @@ PHP_METHOD(Phar, webPhar)
723
726
zend_throw_exception_ex(phar_ce_PharException, 0, "phar error: rewrite callback must return a string or false");
724
727
725
728
cleanup_fail:
- zval_ptr_dtor(¶ms);
729
if (free_pathinfo) {
730
efree(path_info);
731
0 commit comments