jani            Tue Apr  8 12:33:55 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/standard/tests/general_functions       parse_ini_file.phpt 
  Log:
  MFH: Missing basic single ini file test (bug #44574)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/parse_ini_file.phpt?r1=1.1.2.2.2.1&r2=1.1.2.2.2.2&diff_format=u
Index: php-src/ext/standard/tests/general_functions/parse_ini_file.phpt
diff -u 
php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.1.2.2.2.1 
php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.1.2.2.2.2
--- 
php-src/ext/standard/tests/general_functions/parse_ini_file.phpt:1.1.2.2.2.1    
    Fri Sep 28 02:05:09 2007
+++ php-src/ext/standard/tests/general_functions/parse_ini_file.phpt    Tue Apr 
 8 12:33:54 2008
@@ -89,6 +89,11 @@
 file_put_contents($filename, $ini);
 var_dump(parse_ini_file($filename, true));
 
+/* From bug #44574 */
+$ini = "[section1]\nname = value";
+file_put_contents($filename, $ini);
+var_dump(parse_ini_file($filename, true));
+
 @unlink($filename);
 echo "Done\n";
 ?>
@@ -170,4 +175,11 @@
   ["test"]=>
   string(5) "test4"
 }
+array(1) {
+  ["section1"]=>
+  array(1) {
+    ["name"]=>
+    string(5) "value"
+  }
+}
 Done



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to