diff options
Diffstat (limited to 'ext/pcre/tests/bug33200.phpt')
-rw-r--r-- | ext/pcre/tests/bug33200.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug33200.phpt b/ext/pcre/tests/bug33200.phpt new file mode 100644 index 000000000..b00b72ac2 --- /dev/null +++ b/ext/pcre/tests/bug33200.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #33200 (magic_quotes_sybase = On makes 'e' modifier misbehave) +--INI-- +magic_quotes_sybase=1 +--FILE-- +<?php +$str = 'some \'$sample\' text'; +$str = preg_replace("/(some.*text)/e", "strtoupper('\\1')", $str); +echo $str; +?> +--EXPECT-- +SOME '$SAMPLE' TEXT |