|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-21 23:50 UTC] fidian at rumkin dot com
[2012-08-22 05:43 UTC] laruence@php.net
-Assigned To:
+Assigned To: pierrick
[2012-08-22 05:43 UTC] laruence@php.net
[2012-11-16 23:52 UTC] pierrick@php.net
[2012-11-16 23:52 UTC] pierrick@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ Given an INI file that looks like this ini = "a"b" and when you use parse_ini_file with INI_SCANNER_RAW, PHP used to return this as array('ini' => 'a"b') and now returns it as array('ini' => 'ab"'). This does not appear to match with Microsoft's GetPrivateProfileString (http://msdn.microsoft.com/en-us/library/ms724353(VS.85).aspx) where they say that values which are quoted with either single or double quotes are simply unquoted. My expected behavior would be to mirror the Microsoft parser, especially when in raw mode. Note: I am not talking about changing INI_SCANNER_NORMAL, just the raw mode so I can get the unparsed values. According to git-bisect, commit 4e6f27f4db6121e67f17906b27cc829120738b71 is the culprit, but I suspect that the fix for bug 51094 is really to blame. Test script: --------------- <?php error_reporting(0); $result = parse_ini_string('ini = "a"b"', false, INI_SCANNER_RAW); var_export($result); echo "\n"; Expected result: ---------------- array ( 'ini' => 'a"b', ) Actual result: -------------- array ( 'ini' => 'ab"', )