|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-07-07 17:58 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 05:00:02 2025 UTC |
There seems to be a glitch in the regex support. If you compile php with the system regex libs on RH5.0, the following line replaces all occurences of "'" with "\'" in the given string: **** return ereg_replace("'", "\'", $str); **** However, if you run that same line on the same system with php compiled with its own regex library, the script just replaces single quotes with single quotes. If you use single quotes around the \', you get the opposite behavior with each of the regex libraries (system library leaves the string alone, but the php library inserts slashed single quotes). This may just be a glitch in the RH regex library, but it would be really nice if the php regex functions worked the same regardless of the library included. Thanks again for such a cool application !