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

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

?>
--EXPECTF--

Warning: Phar::__construct() expects at least 1 parameter, 0 given in %s on line %d
SplFileInfo::getLinkTarget(): Empty filename