Expose the ability to convert an object into an array while ignoring late init
commit02e0953d4dd790f978637cf44d0bc51172f61121
authorDavid Snider <dizzy@fb.com>
Sat, 12 Mar 2022 00:06:08 +0000 (11 16:06 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 12 Mar 2022 00:06:08 +0000 (11 16:06 -0800)
treea1959c1cbdebed31db252f787a2492b3bca07992
parent405d331588ac298531427a7c8662a6ba71992e8d
Expose the ability to convert an object into an array while ignoring late init

Summary:
The current object_prop_array is terrible. No question about it. Unfortunately, it's not terrible enough. It doesn't currently handle the case of converting an object to an array when that object may contain late init properties that aren't initialized.

This exposes that functionality for the few cases that need it.

Reviewed By: ricklavoie

Differential Revision: D34826602

fbshipit-source-id: 9b7a5316c53bd4d7e9c3abd1f9dec7a083a70a32
hphp/hack/hhi/stdlib/builtins_variable.hhi
hphp/runtime/base/type-object.cpp
hphp/runtime/base/type-object.h
hphp/runtime/ext/std/ext_std_variable.cpp
hphp/runtime/ext/std/ext_std_variable.php
hphp/test/slow/object_prop_array.php
hphp/test/slow/object_prop_array.php.expect