|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-06-27 11:36 UTC] tony2001@php.net
  [2007-07-05 01:00 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ function ereg_replace seems to add the replacement string at the end of the string when the replacement is a special character (utf-8 code) and the pattern is \'. using mb_ereg_replace the problem is solved, but ereg_replace works wrong Reproduce code: --------------- echo ereg_replace("\'","‘","hola"); Expected result: ---------------- I expect this as a result: hola because there isn't a ‘ in text hola Actual result: -------------- it actually outputs: hola‘