xref: /php-src/ext/phar/tests/bug60261.phpt (revision 74859783)
1--TEST--
2Bug #60261 (phar dos null pointer)
3--EXTENSIONS--
4phar
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