|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2012-10-05 04:54 UTC] laruence@php.net
-Type: Bug
+Type: Documentation Problem
[2012-10-05 04:54 UTC] laruence@php.net
[2013-04-07 17:44 UTC] david at grudl dot com
[2015-11-24 05:22 UTC] rudolf dot theunissen at gmail dot com
[2015-11-24 15:10 UTC] levim@php.net
-Assigned To:
+Assigned To: ajf
[2015-11-24 15:10 UTC] levim@php.net
[2015-11-24 15:11 UTC] levim@php.net
-Type: Documentation Problem
+Type: Bug
[2015-11-24 15:56 UTC] ajf@php.net
[2015-11-24 17:23 UTC] ajf@php.net
-Summary: Behavior of implementing the ArrayAccess interface
has been changed in php 5.4
+Summary: Constant numeric strings become integers when used as
ArrayAccess offset
[2015-11-24 17:23 UTC] ajf@php.net
[2016-04-04 04:20 UTC] whatchildisthis at gmail dot com
[2017-05-26 15:31 UTC] ajf@php.net
-Status: Assigned
+Status: Analyzed
-Assigned To: ajf
+Assigned To:
[2017-05-26 15:31 UTC] ajf@php.net
[2017-06-18 05:46 UTC] a dot schilder at gmx dot de
[2018-07-02 14:43 UTC] nikic@php.net
[2018-07-02 14:43 UTC] nikic@php.net
-Status: Analyzed
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ Execute the test script provided below in php 5.3.10 and php 5.4.0-3 may get different results which are string(1) "0" and int(0). I don't know if this is a bug or a patch. Test script: --------------- <?php class Test implements ArrayAccess { public function offsetExists($off) { } public function offsetUnset($off) { } public function offsetSet($off, $el) { } public function offsetGet($off) { var_dump($off); } } $test = new Test(); $test['0']; Expected result: ---------------- string(1) "0" Actual result: -------------- int(0)