[TYPO3-core] RFC: Bug #15311: t3lib_div::sanitizeLocalUrl() leads to fatal error on PHP4 systems

Jigal van Hemert jigal at xs4all.nl
Tue Aug 3 10:59:14 CEST 2010


Hi Masi,

Martin Kutschker wrote:
> Am 02.08.2010 16:35, schrieb Oliver Hader:
>> [Fri Jul 30 17:55:06 2010] [error] [client xxx.xxx.xx.xx] PHP
>> Warning: preg_match() [<a
>> href='function.preg-match'>function.preg-match</a>]: Compilation
>> failed: support for \\P, \\p, and \\X has not been compiled at
>> offset 3 in
>> /usr/lib/typo3/typo3_src-4.1.14/t3lib/class.t3lib_div.php on line
>> 3612, referer: http://www.domain.tld/typo3/alt_menu.php. [^]
> 
> FYI: I'm not sure if this is really a PHP4 issue. If you compile PHP
> yourself you can disable - why?!?! - the support for \P etc if you
> want to.

No, it's not a PHP4 issue. Support for \P, \p and \X was introduced in 
PHP 5.1.0 (see link Olly provided and the end of his RFC).

So, for TYPO3 versions which do not require PHP >= 5.1.0 this is an issue.

I've already started an RFC to include basic required PHP module 
checking in the 123 install tool, but I'm not aware of a method to check 
for all kinds of compilation options.

-- 
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