-
-
Couldn't load subscription status.
- Fork 37
Remove all redundant references #350
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
base: 3.x-dev
Are you sure you want to change the base?
Remove all redundant references #350
Conversation
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.
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
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 |
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 |
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. |
7f3dce5 to
4f9485d
Compare
|
@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. |
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.