xref: /PHP-8.0/ext/phar/tests/bug60261.phpt (revision 9975986b)
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--EXPECT--
17Phar::__construct() expects at least 1 argument, 0 given
18