svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini
branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini
branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt trunk/ext/standard/tests/general_functions/bug49692.ini
trunk/ext/standard/tests/general_functions/bug49692.phpt
| From: | Rafael Machado Dohms | Date: | Mon, 28 Sep 2009 22:57:41 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt trunk/ext/standard/tests/general_functions/bug49692.ini trunk/ext/standard/tests/general_functions/bug49692.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60543@lists.php.net to get a copy of this message | ||
rdohms Mon, 28 Sep 2009 22:57:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288922
Log:
Adding tests for bug #49692
Bug: http://bugs.php.net/49692 (Bogus) parse_ini_file()
throws errors when key contains '/' (forward slash)
Changed paths:
A php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini
A php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt
A php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini
A php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt
A php/php-src/trunk/ext/standard/tests/general_functions/bug49692.ini
A php/php-src/trunk/ext/standard/tests/general_functions/bug49692.phpt
Added: php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini
===================================================================
--- php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini
(rev 0)
+++ php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.ini 2009-09-28
22:57:41 UTC (rev 288922)
@@ -0,0 +1,4 @@
+//my.ini file
+[sitemap]
+/home = default:index
+/info = default:info
Added: php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_2/ext/standard/tests/general_functions/bug49692.phpt 2009-09-28
22:57:41 UTC (rev 288922)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #49692: parse_ini_file() throws errors when key contains '/' (forward slash)
+--CREDITS--
+Rafael Dohms <rdohms [at] gmail [dot] com>
+--SKIPIF--
+<?php
+ if (!extension_loaded("gd")) die("skip GD not present");
+?>
+--FILE--
+<?php
+
+var_dump(parse_ini_file('bug49692.ini', true));
+
+?>
+--EXPECTF--
+array(1) {
+ ["sitemap"]=>
+ array(2) {
+ ["/home"]=>
+ string(13) "default:index"
+ ["/info"]=>
+ string(12) "default:info"
+ }
+}
Added: php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.ini 2009-09-28
22:57:41 UTC (rev 288922)
@@ -0,0 +1,4 @@
+//my.ini file
+[sitemap]
+/home = default:index
+/info = default:info
Added: php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/general_functions/bug49692.phpt 2009-09-28
22:57:41 UTC (rev 288922)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #49692: parse_ini_file() throws errors when key contains '/' (forward slash)
+--CREDITS--
+Rafael Dohms <rdohms [at] gmail [dot] com>
+--SKIPIF--
+<?php
+ if (!extension_loaded("gd")) die("skip GD not present");
+?>
+--FILE--
+<?php
+
+var_dump(parse_ini_file('bug49692.ini', true));
+
+?>
+--EXPECTF--
+array(1) {
+ ["sitemap"]=>
+ array(2) {
+ ["/home"]=>
+ string(13) "default:index"
+ ["/info"]=>
+ string(12) "default:info"
+ }
+}
Added: php/php-src/trunk/ext/standard/tests/general_functions/bug49692.ini
===================================================================
--- php/php-src/trunk/ext/standard/tests/general_functions/bug49692.ini (rev
0)
+++ php/php-src/trunk/ext/standard/tests/general_functions/bug49692.ini 2009-09-28 22:57:41 UTC (rev
288922)
@@ -0,0 +1,4 @@
+//my.ini file
+[sitemap]
+/home = default:index
+/info = default:info
Added: php/php-src/trunk/ext/standard/tests/general_functions/bug49692.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/general_functions/bug49692.phpt
(rev 0)
+++ php/php-src/trunk/ext/standard/tests/general_functions/bug49692.phpt 2009-09-28 22:57:41 UTC
(rev 288922)
@@ -0,0 +1,24 @@
+--TEST--
+Bug #49692: parse_ini_file() throws errors when key contains '/' (forward slash)
+--CREDITS--
+Rafael Dohms <rdohms [at] gmail [dot] com>
+--SKIPIF--
+<?php
+ if (!extension_loaded("gd")) die("skip GD not present");
+?>
+--FILE--
+<?php
+
+var_dump(parse_ini_file('bug49692.ini', true));
+
+?>
+--EXPECTF--
+array(1) {
+ ["sitemap"]=>
+ array(2) {
+ ["/home"]=>
+ string(13) "default:index"
+ ["/info"]=>
+ string(12) "default:info"
+ }
+}