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
A get hook returning an int for a float-typed property is not converted int to float, so var_dump prints float(5.0E-324). #490
A get hook returning an int for a float-typed property is not converted int to float, so var_dump prints float(5.0E-324).
Repro
<?phpclass A { publicfloat$f { get => 1; } publicfloat|string$u { get => 2; } }
$a = newA();
var_dump($a->f);
var_dump($a->u);
Expected (php)
float(1)
float(2)
Actual (manticore 93459368, Darwin arm64)
float(5.0E-324)
int(2)
Tracking
Known-bug repro: tests/aot/repro/wrong/hook_get_int_to_float.php — bash tests/aot/xfail.sh -k hook_get_int_to_float 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
mysqli on top of pdo_mysql: full php.net surface, real async (#492)