summaryrefslogtreecommitdiff
path: root/ext/phar/tests
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-11-11 21:39:11 +0000
committerFelipe Pena <felipe@php.net>2011-11-11 21:39:11 +0000
commit72a133f155f1f397e2e58c0c178f752e29899b49 (patch)
treecaeabdc69b17e9ea7aab8c32f5c012ed00d4d4af /ext/phar/tests
parent0c00f3a15c90efc43f26decd3ab12ba876cae00f (diff)
downloadphp-git-72a133f155f1f397e2e58c0c178f752e29899b49.tar.gz
- Fixed bug #60261 (phar dos null pointer)
Diffstat (limited to 'ext/phar/tests')
-rw-r--r--ext/phar/tests/bug60261.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/phar/tests/bug60261.phpt b/ext/phar/tests/bug60261.phpt
new file mode 100644
index 0000000000..1b6cd7a7cd
--- /dev/null
+++ b/ext/phar/tests/bug60261.phpt
@@ -0,0 +1,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