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
At least one problem is that mysqli_stmt::__construct() allocates memory for the underlying structures, instead of allocation that memory in mysqli_objects_new(). So when the constructor is called manually, that memory leaks. I presume that other mysqli objects have the same issue. Given that calling the constructor manually is pretty uncommon, it might not be worth fixing this for any of the stable versions, but rather to target "master".
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.
ClosesphpGH-17900.
ClosesphpGH-8084.
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.
ClosesphpGH-17900.
ClosesphpGH-8084.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.0, PHP 8.1, master
Operating System
No response
The text was updated successfully, but these errors were encountered: