[TYPO3-core] FYI: #16780: PHP warning in any system BE module
Lorenz Ulrich
lorenz-typo3 at visol.ch
Thu Dec 30 14:21:51 CET 2010
Hi there
As far as I can see, the problem is the strict operator for preg_match.
preg_match returns the number of matches, 0 and not false if there are
no matches:
0 !== FALSE
will be true, while
0 != FALSE (as it was before the patch)
will be false.
In contrary, strpos returns FALSE if needle could not be found.
So I think the strict operator must be reverted for preg_match. Will you
post a follow-up or should I open an issue and provide a patch?
Lorenz
Am 30.12.2010 13:58, schrieb Lorenz Ulrich:
> Hi Steffen
>
> This Fix breaks the changes introduced in #16096. Trunk rev. 9858 has
> the same problems v4 of the patch for #16096 had.
>
> I'll do some further investigation.
>
> Best regards,
>
> Lorenz
>
> Am 20.12.2010 12:56, schrieb Steffen Kamper:
More information about the TYPO3-team-core
mailing list