summaryrefslogtreecommitdiff
path: root/Zend/tests/bug61087.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-02-25 14:15:11 +0000
committerXinchen Hui <laruence@php.net>2012-02-25 14:15:11 +0000
commit38b549ea2fec95da93e03c4a8aec7e8642171648 (patch)
tree2e43defeb4886af2f13daed00ff81202e70267f6 /Zend/tests/bug61087.phpt
parent229e55632ddfe4631d206c57f35eebd20e33d95b (diff)
downloadphp-git-38b549ea2fec95da93e03c4a8aec7e8642171648.tar.gz
Fixed bug #61087 (Memory leak in parse_ini_file when specifying invalid scanner mode)
Diffstat (limited to 'Zend/tests/bug61087.phpt')
-rw-r--r--Zend/tests/bug61087.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug61087.phpt b/Zend/tests/bug61087.phpt
new file mode 100644
index 0000000000..a0375f21bf
--- /dev/null
+++ b/Zend/tests/bug61087.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #61087 (Memory leak in parse_ini_file when specifying invalid scanner mode)
+--FILE--
+<?php
+// the used file is actually irrelevant, so just use this file
+// even though it's not an .ini
+parse_ini_file(__FILE__, false, 100);
+?>
+--EXPECTF--
+Warning: Invalid scanner mode in %s on line %d