[TYPO3-core] FYI: #16780: PHP warning in any system BE module
Jigal van Hemert
jigal at xs4all.nl
Thu Dec 30 14:33:22 CET 2010
Hi,
On 30-12-2010 14:21, Lorenz Ulrich wrote:
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:
And because it returns an integer value I'd go for
if (preg_match(....) > 0)
strpos() may return a positive integer or FALSE if the string could not
be found, so this would become:
if (strpos(....) !== FALSE)
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list