|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-26 12:10 UTC] tony2001@php.net
[2007-08-02 14:33 UTC] philip@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ I stumbled across this when storing MAC configuration in an INI file. When the MAC address (length=12) had all numbers and started with "00" then the MAC would not be stored as a section correctly. Reproduce code: --------------- <?php $options = parse_ini_file("test.ini", TRUE); print_r($options); ?> -- test.ini -- [001099030277] option1 = yes [011099030277] option2 = yes Expected result: ---------------- Array ( [001099030277] => Array ( [option1] => 1 ) [011099030277] => Array ( [option2] => 1 ) ) Actual result: -------------- Array ( [8] => Array ( [option1] => 1 ) [011099030277] => Array ( [option2] => 1 ) )