ArrayObject::append() should delegate to ArrayObject::offsetSet()
commitbe5c755780e52193e00d55cca9475381b3913c35
authoraude <aude.wiki@gmail.com>
Fri, 15 Aug 2014 22:07:14 +0000 (15 15:07 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 15 Aug 2014 22:30:18 +0000 (15 15:30 -0700)
tree1f58c071bda09bccd5384840c3fcec133d717ba6
parent930318889f94c5f84c7f00515275edc44b6035e3
ArrayObject::append() should delegate to ArrayObject::offsetSet()

Summary: Match php5 implementation by delegating rather than direct manipulation of internal state.
Fixes issue #3403.
Closes https://github.com/facebook/hhvm/pull/3404

Reviewed By: @fredemmott

Differential Revision: D1486300

Pulled By: svcscm
hphp/system/php/spl/miscellaneous/ArrayObject.php
hphp/test/slow/array_object/append.php
hphp/test/slow/array_object/append.php.expect