Annotation of embedaddon/php/ext/phar/tests/bug60261.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #60261 (phar dos null pointer)
3: --SKIPIF--
4: <?php if (!extension_loaded("phar")) die("skip"); ?>
5: --FILE--
6: <?php
7:
8: $nx = new Phar();
9: try {
10: $nx->getLinkTarget();
11: } catch (Exception $e) {
12: echo $e->getMessage(), "\n";
13: }
14:
15: ?>
16: --EXPECTF--
17:
18: Warning: Phar::__construct() expects at least 1 parameter, 0 given in %s on line %d
19: SplFileInfo::getLinkTarget(): Empty filename
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>