[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-31 Thread andrei
ID: 12668 Updated by: andrei Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: I could change it so that only and \ are slashed. From what I remember about some of the complaints before addslashes behavior was

[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread andrei
ID: 12668 Updated by: andrei Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: This is because preg_replace() runs addslashes() internally on the captured subpatterns before substrituting them

[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread alindeman
ID: 12668 Updated by: alindeman Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: how about creating either two different functions, or another attribute to preg_replace, that you can set true/false to run that

[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread alindeman
ID: 12668 Updated by: alindeman Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: of course I meant addslashes() Previous Comments:

[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace

2001-08-09 Thread chuck
ID: 12668 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: PCRE related Operating System: FreeBSD 4.0 PHP Version: 4.0.6 New Comment: Ah - I see - so what I'm seeing is actually a symptom of the basic issue that addslashes() is not a perfect