Project

General

Profile

Actions

Bug #19888

closed

Use of preg functions with ereg patterns

Added by Karsten Dambekalns over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are a bunch (see attached file) of preg_* calls using "[:alnum:]" and "[:space:]". This doesn't give any error but will not work as intended.

Here's a quick demo:

// replace "aceps:][" in the string with "s"
var_dump(preg_replace("/[[:space:]]*/", 's', 'ab cd fgh ijk nac'));
?>

(issue imported from #M10226)


Files

preg-with-ereg-pattern.txt (3.3 KB) preg-with-ereg-pattern.txt Administrator Admin, 2009-01-22 14:22
Actions

Also available in: Atom PDF