Bug #12140: pcre_replace change behavior with \
| From: | madmax at express dot ru | Date: | Fri, 13 Jul 2001 12:51:59 +0000 |
| Subject: | Bug #12140: pcre_replace change behavior with \ | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59956@lists.php.net to get a copy of this message | ||
From: madmax@express.ru
Operating system:
PHP version: 4.0.6
PHP Bug Type: PCRE related
Bug description: pcre_replace change behavior with \
task:
need replace \ (one) to \\\\ (four)
On php.4.0.5 work:
$val1=preg_replace('/\\\/',"\\\\\\\\",$val);
On php 4.0.6 work:
$val1=preg_replace('/\\\/',"\\\\\\\\\\\\\\\\",$val);
--
Edit bug report at: http://bugs.php.net/?id=12140&edit=1