|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-06 22:59 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 20:00:01 2025 UTC |
Description: ------------ The ereg_replace-function can't handle a closing hook in a string as parameter. Try this to reproduce the bug: $message = ereg_replace(":-)","<img src='../images/hi.gif'>",$message); It chokes on the first parameter seeing a ')'. As the string is enclosed by quotes it shouldn't do this and parse on the string until the last quote is found. oortm netherlands Reproduce code: --------------- $message = ereg_replace(":-)","<img src='../images/hi.gif'>",$message); Expected result: ---------------- 1. modified content of the string entitled 'message' 2. unmodifed content of the string entitled 'message' Actual result: -------------- script is exited