[TYPO3] TYPO3, warnings with mb_strstr()
Franz Holzinger
franz at fholzinger.com
Sat May 5 12:17:59 CEST 2007
Hello Bernez,
> Hi list.
>
> I recently update my PHP to version 5.2 but since then one fonction shows
> warning all the time. It's strstr().
> For information I'm using TYPO3 4.0.1 on a debian with PHP5.2
>
> The messages are : *Warning*: mb_strstr()
> [function.mb-strstr<http://webtest.trinaps.com/typo3/function.mb-strstr>]:
> Empty haystack in *
> /var/www/trinaps.com/webtest/cms/typo3/t3lib/class.t3lib_div.php* on line *
> 1352*
>
change the code on this line.
strstr ( string $haystack, string $needle )
make an if around the strstr command:
if ($haystack) {
strstr ($haystack, $needle);
}
see:
http://fr.php.net/manual/fr/function.strstr.php
- Franz
More information about the TYPO3-english
mailing list