> De : Benjamin Eberlei [mailto:kont...@beberlei.de] > > The funny thing is that the fix for this is: > > - substr($image, strrpos($image, "\n") + 1) > + (string)substr($image, strrpos($image, "\n") + 1) > > Which is that sort of casting that is put forward as argument against the > dual/strict mode.
It is just one possible fix, but definitely not the one I would suggest, because too permissive. No controversy please, because both are valid. I would just prefer adding a test like 'if ($result===false) $result='';'. Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php