summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug54395.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-03-26 17:02:34 +0000
committerFelipe Pena <felipe@php.net>2011-03-26 17:02:34 +0000
commit3acdca47030e6dc973cffc0063d45e1bef354a3e (patch)
treedba640dd19639e1638e2006654985474878219c8 /ext/phar/tests/bug54395.phpt
parent8138f7de406ef351e51ebec415738b646be2541e (diff)
downloadphp-git-3acdca47030e6dc973cffc0063d45e1bef354a3e.tar.gz
- Fixed bug #54395 (Phar::mount() crashes when calling with wrong parameters)
Diffstat (limited to 'ext/phar/tests/bug54395.phpt')
-rw-r--r--ext/phar/tests/bug54395.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/phar/tests/bug54395.phpt b/ext/phar/tests/bug54395.phpt
new file mode 100644
index 0000000000..091ed326a8
--- /dev/null
+++ b/ext/phar/tests/bug54395.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #54395 (Phar::mount() crashes when calling with wrong parameters)
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--FILE--
+<?php
+
+try {
+ phar::mount(1,1);
+} catch (Exception $e) {
+ var_dump($e->getMessage());
+}
+
+?>
+--EXPECTF--
+string(25) "Mounting of 1 to 1 failed"