Skip to content
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

Cannot overload Memcached::get due to: ZEND_ARG_INFO(2, ...) #138

Closed
mevdschee opened this issue Apr 11, 2014 · 2 comments
Closed

Cannot overload Memcached::get due to: ZEND_ARG_INFO(2, ...) #138

mevdschee opened this issue Apr 11, 2014 · 2 comments

Comments

@mevdschee
Copy link

In php_memcached.c you use "ZEND_ARG_INFO(2, ...)" construct which makes that I cannot overload the "get" method. As previously reported here:

https://bugs.php.net/bug.php?id=66331

Or the case I am working on:

Leaseweb/LswMemcacheBundle#20

Can't you just change "ZEND_ARG_INFO(2, ...)" back to "ZEND_ARG_INFO(1, ...)"? If not, can you advice me what to do?

@mkoppanen
Copy link
Member

Duplicate of #126

@mkoppanen
Copy link
Member

Composition over inheritance is a viable solution in some cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants