Date: 06/21/01
- Next message: Hartmut Holzgraefe: "Re: [PHP-DEV] Totally Blue Sky"
- Previous message: Andi Gutmans: "[PHP-DEV] 4.0.6 Packaged!"
- In reply to: PWMoosman <email protected>: "[PHP-DEV] Bug #11594: preg_replace is not working with backslash $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 21:40 20-6-2001 +0000, PWMoosman <email protected> wrote:
>From: PWMoosman <email protected>
>Operating system: Solaris
>PHP version: 4.0.5
>PHP Bug Type: PCRE related
>Bug description: preg_replace is not working with backslash $
>
>I'm trying to use preg_replace to replace $ with \$.
>
>Here is a sample script:
>
><?
>
>$data = '$_hello_$world';
>
>$data = preg_replace('/\$/i','\$',$data);
$data = preg_replace('"/\$/","\\\$", $data);
>print "data : $data\n";
>
>?>
>
>
>I expect the script to output \$_hello_\$world. However, version 4.0.5 is
>outputing $_hello_$world.
>
>This worked in version 4.0.4
>
>It possible this bug is related to bug# 10668
>
>
>
>
>--
>Edit Bug report at: http://bugs.php.net/?id=11594&edit=1
>
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Hartmut Holzgraefe: "Re: [PHP-DEV] Totally Blue Sky"
- Previous message: Andi Gutmans: "[PHP-DEV] 4.0.6 Packaged!"
- In reply to: PWMoosman <email protected>: "[PHP-DEV] Bug #11594: preg_replace is not working with backslash $"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

