You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_object_vars() from outside the class omits a virtual (hook-only) property; php lists it with the get hook's value. #458
get_object_vars() from outside the class omits a virtual (hook-only) property; php lists it with the get hook's value.
Repro
<?phpclass K
{
publicint$real = 1;
publicint$virt { get => 42; }
}
var_dump(get_object_vars(newK()));
Expected (php)
array(2) {
["real"]=>
int(1)
["virt"]=>
int(42)
}
Actual (manticore 579840ed, Darwin arm64)
array(2) {
["real"]=>
int(1)
["virt"]=>
int(0)
}
Tracking
Known-bug repro: tests/aot/repro/wrong/get_object_vars_virtual_prop.php — bash tests/aot/xfail.sh -k get_object_vars_virtual_prop reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Activity
Bug sweep: lexer, reference cells, hooks, reflection, array_splice (#428