Uh oh!
There was an error while loading. Please reload this page.
Remove all redundant references - #350
Conversation
There was a problem hiding this comment.
First thanks for your pull request. I added some comments.
I didn't tested if the reference with mysql statement object but tested it with user defined variable-length argument lists parameter which worked fine.
Can you elaborate what you mean with
after switching to
get_result
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kamil-tekiela
commented
Oct 18, 2025
Right now, composer says that PHP 8.1 is the minimum required version. From PHP 8.2 the Once you make the switch to PHP 8.2, you can replace the current code because you do no use result binding in reality. You just need it because there is no alternative. Using |
HLeithner
commented
Oct 18, 2025
I think I still don't get you sorry, which function is new in php 8.2? get_result on the statement exists since 5.3 and no changes are in the function description. Also we use bind_result if I have checked the code correctly. |
There is no new function. As you can see on https://www.php.net/manual/en/mysqli-stmt.get-result.php in the note box:
And if you recall my RFC that was implemented in PHP 8.2 https://wiki.php.net/rfc/mysqli_support_for_libmysql the feature to compile mysqli with libmysqlclient was dropped. So since PHP 8.2, you can safely use My whole point is that you don't need |
HLeithner
commented
Oct 18, 2025
ok, now I get it, thanks. would be useful for the next major release. If you like I to create a pr I can create a new branch for it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
7f3dce5 to
4f9485dComparerichard67
commented
Oct 26, 2025
@HLeithner GitHub still shows that you requested changes, but the review comments are all resolved. Could you review again and approve if ok? Thanks in advance. |
richard67
commented
Nov 9, 2025
@kamil-tekiela I've allowed myself to fix the 2 conflicts in the |
kamil-tekiela
commented
Dec 11, 2025
Sorry for the delay. Yes, that is correct. |
Uh oh!
There was an error while loading. Please reload this page.
HLeithner
commented
Feb 15, 2026
Thanks @kamil-tekiela |
This PR removes
call_user_func_arraywhich was necessary in PHP 5. The references magic was only needed forcall_user_func_array. The only reference needed is forrowBindedValueswhich is because PHP cannot handle references to properties the same way as it does with variables. In the future version, you can get rid of this completely after switching toget_result.