@@ 3602-3620 (lines=19) @@ | ||
3599 | } |
|
3600 | ||
3601 | // ----- Change abort status |
|
3602 | if ($p_entry['status'] == 'aborted') { |
|
3603 | $p_entry['status'] = 'skipped'; |
|
3604 | } elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { |
|
3605 | // ----- Look for post-extract callback |
|
3606 | // ----- Generate a local information |
|
3607 | $v_local_header = []; |
|
3608 | $this->privConvertHeader2FileInfo($p_entry, $v_local_header); |
|
3609 | ||
3610 | // ----- Call the callback |
|
3611 | // Here I do not use call_user_func() because I need to send a reference to the |
|
3612 | // header. |
|
3613 | // eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);'); |
|
3614 | $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); |
|
3615 | ||
3616 | // ----- Look for abort result |
|
3617 | if ($v_result == 2) { |
|
3618 | $v_result = PCLZIP_ERR_USER_ABORTED; |
|
3619 | } |
|
3620 | } |
|
3621 | ||
3622 | // ----- Return |
|
3623 | return $v_result; |
|
@@ 3781-3800 (lines=20) @@ | ||
3778 | } |
|
3779 | ||
3780 | // ----- Change abort status |
|
3781 | if ($p_entry['status'] == 'aborted') { |
|
3782 | $p_entry['status'] = 'skipped'; |
|
3783 | } elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { |
|
3784 | // ----- Look for post-extract callback |
|
3785 | ||
3786 | // ----- Generate a local information |
|
3787 | $v_local_header = []; |
|
3788 | $this->privConvertHeader2FileInfo($p_entry, $v_local_header); |
|
3789 | ||
3790 | // ----- Call the callback |
|
3791 | // Here I do not use call_user_func() because I need to send a reference to the |
|
3792 | // header. |
|
3793 | // eval('$v_result = '.$p_options[PCLZIP_CB_POST_EXTRACT].'(PCLZIP_CB_POST_EXTRACT, $v_local_header);'); |
|
3794 | $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); |
|
3795 | ||
3796 | // ----- Look for abort result |
|
3797 | if ($v_result == 2) { |
|
3798 | $v_result = PCLZIP_ERR_USER_ABORTED; |
|
3799 | } |
|
3800 | } |
|
3801 | ||
3802 | return $v_result; |
|
3803 | } |