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