|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-05 00:09 UTC] sniper@php.net
[2005-09-05 11:02 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
Description: ------------ The documentation is unclear on this aspect so I am presuming this is a bug: Keys in INI files set to null (no quotes) are parsed as empty string "" instead of a true null. If this is intended behavior then it should be documented as such. Reproduce code: --------------- -- test.ini -- [foo] bar = null -- test.php -- var_dump( parse_ini_file( "test.ini" ) ); Expected result: ---------------- array(1) { ["foo"]=> NULL } Actual result: -------------- array(1) { ["foo"]=> string(0) "" }