1--TEST-- 2Phar: corrupted zip (no end of zip record) 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 6--FILE-- 7<?php 8try { 9 new PharData(dirname(__FILE__) . '/files/nozipend.zip'); 10} catch (Exception $e) { 11 echo $e->getMessage() . "\n"; 12} 13?> 14===DONE=== 15--EXPECTF-- 16phar error: end of central directory not found in zip-based phar "%snozipend.zip" 17===DONE=== 18