91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女

ZipArchive::registerCancelCallback

(PHP >= 8.0.0, PECL zip >= 1.17.0)

ZipArchive::registerCancelCallbackRegister a callback to allow cancellation during archive close.

說(shuō)明

public ZipArchive::registerCancelCallback(callable $callback): bool

Register a callback function to allow cancellation during archive close.

參數

callback

If this function return 0 operation will continue, other value it will be cancelled.

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

范例

This example creates a ZIP file archive php.zip and cancel operation on some run condition.

示例 #1 Archive a file

<?php
$zip 
= new ZipArchive();
if (
$zip->open('php.zip'ZipArchive::CREATE ZipArchive::OVERWRITE)) {
    
$zip->addFile(PHP_BINARY'php');
    
$zip->registerCancelCallback(function () {
        return (
$someruncondition ? -0);
    });
    
$zip->close();
}

注釋

注意:

This function is only available if built against libzip ≥ 1.6.0.

參見(jiàn)

91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女