Converting ArrayObjcets to an array was not working correctly when the STD_PROP_LIST...
commitefa5ea4b46bae527463758ad10761866670ce803
authorKeith Miller <kdm@fb.com>
Fri, 13 Jun 2014 17:48:17 +0000 (13 10:48 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Mon, 23 Jun 2014 23:00:18 +0000 (23 16:00 -0700)
tree20905529e6d875978c61d08980d965a8938a52da
parentd9c692225810d04fc3bf99a035c636237c3c814a
Converting ArrayObjcets to an array was not working correctly when the STD_PROP_LIST flag was set

Summary: The STD_PROP_LIST flag for array objects should treat properties of the array object as if they are the storage of the class. When we were converting to an array the internal storage array was still being copied. This also a problem with json_encoding where the properties were not being encoded. Fixes #2139

Reviewed By: @ptarjan

Differential Revision: D1382324
hphp/runtime/base/object-data.cpp
hphp/runtime/base/object-data.h
hphp/test/slow/array_object/json_encode.php [new file with mode: 0644]
hphp/test/slow/array_object/json_encode.php.expect [new file with mode: 0644]