Skip to content

Fix GH-11550: MySQL Statement has a empty query result when the response field has changed, also Segmentation fault #11551

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

Closed
wants to merge 6 commits into from

Conversation

Yurunsoft
Copy link
Contributor

fix #11550

Segmentation fault also occurs in PHP 8.0, should it be merged into the PHP-8.0 branch?

@Girgias Girgias requested a review from kamil-tekiela June 28, 2023 14:07
@kamil-tekiela
Copy link
Member

kamil-tekiela commented Jun 28, 2023 via email

Copy link

@carleii carleii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally approve that.

@Yurunsoft
Copy link
Contributor Author

I can't review it properly right now, but a few points: - don't add unnecessary parentheses after require statement - when you include "connect.inc", use the helper functions from it instead of instantiating new mysqli - don't change unrelated files. If you want to fix the debug comments, do it in separate pr revised against master

On Wed, Jun 28, 2023, 16:07 George Peter Banyard @.> wrote: @Girgias https://github.com/Girgias requested your review on: #11551 <#11551> Fix GH-11550 <#11550>: MySQL Statement has a empty query result when the response field has changed, also Segmentation fault. — Reply to this email directly, view it on GitHub <#11551 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSHGGCNYM3LODYXJKEZXNTXNQ3DDANCNFSM6AAAAAAZWWASZY . You are receiving this because your review was requested.Message ID: @.>

I have modified the code, except for mysqli.
I see other test cases that also instantiate mysqli.

@Yurunsoft
Copy link
Contributor Author

@kamil-tekiela Could you review this PR?

This problem is fatal in memory-resident applications (e.g. Workerman, Swoole, etc.)

jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants