summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug60261.phpt
blob: 84d4203e10b991ebb9a007520f465d2ab6fc450f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #60261 (phar dos null pointer)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE--
<?php

try {
    $nx = new Phar();
	$nx->getLinkTarget();
} catch (TypeError $e) {
	echo $e->getMessage(), "\n";
}

?>
--EXPECTF--
Phar::__construct() expects at least 1 parameter, 0 given