-
Notifications
You must be signed in to change notification settings - Fork 57
PHP Strict Standards errors #20
Comments
Hi, I'm asking this because replace(), in version < 2.x, should have the signature without $udf_flags. |
I added a 1.2.6 tag.. did that help? |
Did you update? Is it fixed? |
So, the memcached library version is 2.2.0. In this case, use 1.2.6 tag, indicated by Maurits. |
Thank you Razvan :-) |
No sorry I updated my vendors but I still have the same problem. |
Can you try this again? |
I still have the problem. It appears when I use any doctrine command like Maybe it's doctrine. In my composer.json, I have: |
I made a new tag v1.2.7 If the interface in ./Resources/codegen/memcached-2.2.0/memcached-api.php is correct then it should run without errors. Let me know. |
I still have the same error. Here is the full list: I also have one on my local machine with 2.1.0: Call Stack: I can temporarily disable errors by setting error_reporting(E_ERROR | E_WARNING | E_PARSE); in my AppKernel.php |
I will send an update today.. |
I made a new tag v1.2.8 It fixes the signature of setOptions() and touchbyKey() |
It's better but now on 2.1.0, I have the same error on the following functions: Concerning the 2.2.0: Thank you very much for your after-sales service :-) |
Thank you for the detailed reports. I will fix these right away. It is unfortunate that the extensions documentation is incorrect. I will make sure the documents are corrected when we are done. Thank you for helping me improve the product :-) |
v1.2.11 released.. still some problems, but we are slowly getting there.. :-) |
Can you let me know your output with the latest version? |
With 2.1.0, no more errors :-) With 2.2.0, only 4 remains: |
hmmm.. a case of this bug it seems: https://bugs.php.net/bug.php?id=66331 I have mailed the authors Andrei Zmievski and Mikko Koppanen. |
The following issue tracks this in memcached extension: php-memcached-dev/php-memcached#126. Inherently this is an issue with PHP and how the argument hinting is handled. |
So, it boils down to a bug in PHP. The author of php-memcached (@mkoppanen) was not willing to program around this bug, as you can read above. Maybe the warnings can be fixed in some future version of this bundle, but not trivially. |
Duplicate of issue #21 |
Thank you for your replies and for your help! I can avoid the issue by disabling strict errors in symfony. I just need to add this line in the AppKernel.php |
No problem, I do what I can. |
Hi,
When I upload my website folder on my server, I got this error for almost every function of LswMemcacheBundle:
PHP Strict Standards: Declaration of Lsw\MemcacheBundle\Cache\LoggingMemcache::replace() should be compatible with Memcached::replace($key, $value, $expiration = NULL, $udf_flags = NULL) in XXX/vendor/leaseweb/memcache-bundle/Lsw/MemcacheBundle/Cache/LoggingMemcache.php on line 501
I don't want to disable logs for debugging purpose.
I use php 5.5.11 and memcached 1.4.13
Thank you :-)
The text was updated successfully, but these errors were encountered: