[TYPO3-core] RFC: T3-speedup preg insted of ereg

Martin Kutschker Martin.Kutschker at blackbox.net
Fri Oct 28 14:07:33 CEST 2005


Bernhard Kraft <kraftb at kraftb.at> writes on 
Thu, 27 Oct 2005 00:12:13 +0200 (METDST):

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Christian Jul Jensen wrote:
> 
> > On Wednesday 26 October 2005 23:52, Bernhard Kraft wrote:
> > 
> >>preg's are faster than ereg's (Don't ask why :) test it).
> 
> > PCRE requires external libraries, POSIX doesn't. I'm pretty sure
> > that is why POSIX is preferred in the core.
> 
> Didn't know that.
> 
> Than do a
> 
> if (function_exists('preg_match') [
> require_once(PATH_t3lib.'class.t3lib_parsehtml_preg.php');
> } else {
> require_once(PATH_t3lib.'class.t3lib_parsehtml_ereg.php');
> }


Nah, following the discussion just use pregs all over the place. Maintainig two versions of parsehtml is not justified.

I suggest we replace all remaining eregs with pregs in the Core.

Masi




More information about the TYPO3-team-core mailing list