-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Bug #52098 Own PDOStatement implementation ignore __call() #1538
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
Conversation
It's TSRMLS_CC when you call it, not TSRMLS_DC. |
Thanks, I think I would not catch that if I didn't search for it. Will remember it in the future though :) |
Tested with:
|
PDO_DBH_DRIVER_METHOD_KIND_STMT TSRMLS_CC) | ||
|| !stmt->dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_STMT]) { | ||
|
||
#if PHP_API_VERSION >= 20041225 |
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.
Should be a macro here, nobody remembers which version 20041225 is. Same for other instances.
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.
Also, because 5.5 is 20121113 and this is the smallest supported PHP version, these checks are not needed there.
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.
Well this #if is found in the function call, so to be sure that the parameter required for my feature is available I thought they where required. But as you say they seem depreciated. I could remove them from the function declaration and call.
28f4992
to
a124c81
Compare
a124c81
to
84c153f
Compare
84c153f
to
cd3f68a
Compare
… of classes aswell.
merged |
Tried to solve bug #52098 by adding a fallback so the get_method handler of the class also runs the standard get_method handler and returns the result of this call when a database function could not be found.