[TYPO3-formidable] PHP5.3 ereg deprecated
Oliver Klee
typo3-german-02 at oliverklee.de
Mon Mar 15 15:13:35 CET 2010
Hi,
Luc Muller schrieb:
> Thanks a lot for pointing this out.
> We're going to adapt this as soon as possible.
I think the changes will break all sorts of stuff because the delimiters
necessary for the preg_* functions still are missing.
Example from the old code (from the 1.1. branch):
ereg('^[[:space:]]*<\?xml[^>]*encoding[[:space:]]*=[[:space:]]*"([^"]*)"',substr($data,0,200),$result);
New code:
preg_match('^[[:space:]]*<\?xml[^>]*encoding[[:space:]]*=[[:space:]]*"([^"]*)"',substr($data,0,200),$result);
I haven't checked the trunk yet, though.
Oli
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
More information about the TYPO3-project-formidable
mailing list