--TEST-- registerProgressCallback --SKIPIF-- --INI-- date.timezone=UTC --FILE-- open($file, ZIPARCHIVE::CREATE)) { exit('failed'); } var_dump($zip->registerProgressCallback(0.5, function ($r) { // Only check start/end as intermediate is not reliable if ($r == 0.0) echo "start\n"; if ($r == 1.0) echo "end\n"; })); var_dump($zip->addFromString('foo', 'entry #1')); var_dump($zip->close()); unlink($file); ?> Done --EXPECT-- bool(true) bool(true) start end bool(true) Done