ZF-2803: PHP 5.3 compatibility for Zend_Cache_Backend_File
Description
Zend_Cache_Backend_File checks for runtime magic quotes. The following patch a) checks whether the function is available (as the functions are removed in PHP 6) and b) suppresses the E_DEPRECATED warning.
Comments
Posted by Fabien MARTY (fab) on 2008-03-07T12:08:17.000+0000
fixed in SVN trunk (thanks)
Posted by Lars Strojny (lars) on 2008-03-07T16:20:25.000+0000
Sorry, but your fix is incomplete. PHP 5.3 introduces E_DEPRECATED. E_DEPRECATED is part of E_STRICT and when set/get_magic_quotes() is called, a deprecation warning is thrown. This means, you have to disable errors with @ in addition to checking whether the function is available as like I did it in my original patch.
Posted by Fabien MARTY (fab) on 2008-03-07T17:28:24.000+0000
(again) many thanks
Posted by Wil Sinclair (wil) on 2008-03-21T17:05:28.000+0000
This issue should have been fixed for the 1.5 release.
Posted by Wim Joris (oxidiser) on 2009-07-21T02:53:39.000+0000
Yes, error suppression is very nice in a production environment, but my development environment does not suppress errors/notices and this problem still persists.
Please fix this, it should not use a deprecated function.
Thank you for your work!