xref: /PHP-5.3/ext/pcre/tests/bug33200.phpt (revision 8deefa87)
1--TEST--
2Bug #33200 (magic_quotes_sybase = On makes 'e' modifier misbehave)
3--INI--
4magic_quotes_sybase=1
5--FILE--
6<?php
7$str = 'some \'$sample\' text';
8$str = preg_replace("/(some.*text)/e", "strtoupper('\\1')", $str);
9echo $str . "\r\n";
10?>
11--EXPECT--
12Deprecated: Directive 'magic_quotes_sybase' is deprecated in PHP 5.3 and greater in Unknown on line 0
13SOME '$SAMPLE' TEXT
14