Project

General

Profile

Actions

Bug #18643

closed

TypoScript Constant Editor produces PHP Warning: ereg() Invalid preceding regular expression in class.t3lib_tsparser_ext.php

Added by LUBRANO J.F. over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-04-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I am training with "typo 3 pour les nuls" and when I try to build a custom template (see page 20) access to template/constant editor fire the following message :
Warning: ereg() [function.ereg]: Invalid preceding regular expression in /home.10/swisscot/www/cms/t3lib/class.t3lib_tsparser_ext.php on line 1099

looking to line 1099 in class.t3lib_tsparser_ext.php I see :

if (ereg('^{[\$][a-zA-Z0-9\.]*}$',trim($fV),$reg))

The regular expression seems to be strange. Trying to replace "{" with "("
and "}" with ")" suppress the message

Is it a good solution ?

P.S. I am not specialist with PHP and regular expressions
(issue imported from #M8161)


Files

0008161.patch (1.3 KB) 0008161.patch Administrator Admin, 2008-04-23 20:00

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #14709: ereg calls without escaped curly bracesClosedKarsten Dambekalns2005-04-28

Actions
Related to TYPO3 Core - Bug #19728: ereg* is deprecated in PHP 5.3 alpha3ClosedKarsten Dambekalns2008-12-21

Actions
Actions

Also available in: Atom PDF