Issue Bug Closed

#19888Use of preg functions with ereg patterns

Karsten Dambekalns 01/22/09, 14:22 updated 01/22/09, 14:52

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)

Reviews 0

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