-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix default value handling of mysqli_fetch_object() #6336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cfb840a
to
a06c6b7
Compare
I've checked |
a06c6b7
to
f8f42a6
Compare
Oh, and I've just noticed that mysqli_fetch_object() uses a |
e4d16ed
to
79c4e7c
Compare
There's still a test failure, but I don't really understand it. |
a893ede
to
6e678ce
Compare
42403ae
to
8ec0578
Compare
Code changes look good to me now, just need those tests to pass :) |
Yeah, I'll try to make CI status green in the evening. It's really a puzzling failure, though |
} catch (Error $e) { | ||
handle_catchable_fatal($e->getCode(), $e->getMessage(), $e->getFile(), $e->getLine()); | ||
$res->fetch_object('mysqli_fetch_object_construct', null); | ||
} catch (TypeError $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me an embarrassingly long time to find this, but ... the problem is that this uses $e
here and then dumps $exception
, which points to an earlier exception :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG... I was also searching for the problem in the morning, but didn't find it 🤦
Related to #5881