Annotation of embedaddon/php/ext/phar/tests/zip/notphar.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Phar: a non-executable zip with no stub named .phar.zip
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("phar")) die("skip"); ?>
        !             5: --INI--
        !             6: phar.readonly=1
        !             7: --FILE--
        !             8: <?php
        !             9: $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
        !            10: $pname = 'phar://' . $fname;
        !            11: 
        !            12: copy(dirname(__FILE__) . '/files/zip.zip', $fname);
        !            13: include $fname;
        !            14: ?>
        !            15: ===DONE===
        !            16: --CLEAN--
        !            17: <?php 
        !            18: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
        !            19: __HALT_COMPILER();
        !            20: ?>
        !            21: --EXPECTF--
        !            22: Warning: include(phar://%snotphar.phar.zip/.phar/stub.php): failed to open stream: '%snotphar.phar.zip' is not a phar archive. Use PharData::__construct() for a standard zip or tar archive in %snotphar.php on line %d
        !            23: PK%a

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>