Hi Matthew,
If it's only windows, it won't be a problem for me. My production server
is linux... and I put a silencer on the substr_compare function.
If you can give me an idea of what kind of names will be compared by the
function and what, in human language the exact goal of this function
call is, then I will give it my best shot and try to come up with a fix.
Maybe a preg_match(/.*name$/i, $decorator) would do? or is it to slow?
Would have to preq_quote the name first of course and look up the syntax
somewhere.
Regards,
Bart McLeod
Matthew Weier O'Phinney schreef:
-- Bart McLeod <[EMAIL PROTECTED]> wrote
(on Monday, 16 June 2008, 02:43 AM -0700):
I use quite a lot of decorators on form elements an I apply them at various
points at runtime, depending on how exactly the form should display,
depending on its state.
I get this warning (serveral times):
Warning: substr_compare() [function.substr-compare]: The length cannot
exceed initial string length in
D:\ZendFramework\library\Zend\Form\Element.php on line 1553
This is an issue with Windows only, and we've been trying to find a fix
since just before the 1.5.0 release (when we first discovered it).
Unfortunately, I don't have a windows machine against which to test, so
I can't work on the issue.
Anybody with a Windows machine who is using Zend_Form who wants to look
into it and send in a patch?