-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Assertion failure ext/mysqli/mysqli_prop.c #17900
Labels
Comments
The problem is that this code is executed setting the internal pointer to NULL: php-src/ext/mysqli/mysqli_nonapi.c Lines 259 to 261 in 67a349d
But (MYSQLI_RESOURCE *)(obj->ptr))->ptr or obj->ptr was not reset to NULL.
|
Honestly, it might be best to just block calling |
Blocking multiple calls to |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Feb 23, 2025
Calling the constructor twice has no real world benefit. Block it to fix these two issues. We also clean up the constructor code a bit: 1) `in_ctor` implies `object` exists 2) We no longer need to deal with reusing internal data. Closes phpGH-17900. Closes phpGH-8084.
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Feb 23, 2025
Calling the constructor twice has no real world benefit. Block it to fix these two issues. We also clean up the constructor code a bit: - `in_ctor` implies `object` exist. - We surround the instance check with ZEND_DEBUG to avoid a runtime penalty. Closes phpGH-17900. Closes phpGH-8084.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Description
The following code:
Resulted in this output:
To reproduce:
Commit:
Configurations:
Operating System:
This report is automatically generated by FlowFusion
PHP Version
c5ee870
Operating System
No response
The text was updated successfully, but these errors were encountered: