Arquivos
hhvm/hphp/test/slow/ext_file/parse_ini_string.php
T
Jordan DeLong 4795dcdc09 Migrate TestExtFile to php
I dropped a couple tests that did nothing
(e.g. clearstatcache) or almost nothing, or that 'tested' things that
almost all the tests do (e.g. unlink or fclose).  Dropped a few unixy
apis that really didn't test that they do anything.  Combined a few
tests also.
2013-06-18 16:23:23 -07:00

20 linhas
448 B
PHP

<?php
$ini =
";;; Created on Tuesday, October 27, 2009 at 12:01 PM GMT\n".
"[GJK_Browscap_Version]\n".
"Version=4520\n".
"Released=Tue, 27 Oct 2009 12:01:07 -0000\n".
"\n".
"\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DefaultProperties\n".
"\n".
"[DefaultProperties]\n".
"Browser=\"DefaultProperties\"\n".
"Version=0\n".
"Platform=unknown\n".
"Beta=false\n";
var_dump(parse_ini_string($ini));
echo "===\n";
var_dump(parse_ini_string($ini, true));