xref: /PHP-7.2/ext/phar/tests/bug60261.phpt (revision 64b167d2)
1--TEST--
2Bug #60261 (phar dos null pointer)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7
8try {
9    $nx = new Phar();
10	$nx->getLinkTarget();
11} catch (TypeError $e) {
12	echo $e->getMessage(), "\n";
13}
14
15?>
16--EXPECTF--
17Phar::__construct() expects at least 1 parameter, 0 given
18