php-src/ext/phar/tests/bug60261.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

18 lines
266 B
PHP

--TEST--
Bug #60261 (phar dos null pointer)
--EXTENSIONS--
phar
--FILE--
<?php
try {
$nx = new Phar();
$nx->getLinkTarget();
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Phar::__construct() expects at least 1 argument, 0 given