Issue Bug Closed

#14926Warning: preg_match(): Unknown modifier 'C' ...

Thomas Keller 08/12/05, 15:03 updated 08/12/06, 14:24

Description

If I load an extension into the extension manager view I get quite a lot
messages like this:

Warning: preg_match(): Unknown modifier ‘C’ in H:\webroot\interports\code\php\typo3\mod\tools\em\index.php on line 2708

which results in a lot error messages like this

Couldn’t find the include_once statement for XCLASS!

Problem seems to be that the above mentioned preg_match has no delimiter set, I set mine to “$” and quoted $cmpF just to ensure that it won’t contain unescaped “$”. The whole line 2708 now looks like this:

if (preg_match(‘$_once[[:space:]]*\(\$TYPO3_CONF_VARS\[TYPO3_MODE\]\[[\’”]XCLASS[\’”]\]\[[\’”]’.preg_quote($cmpF).’[\’”]\]\);$’, $XclassParts1)) {

(issue imported from #M1375)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.