Bug #53191 [Bgs]: var_dump a regex failes
| From: | michelmulder at gmail dot com | Date: | Thu, 28 Oct 2010 12:32:52 +0000 |
| Subject: | Bug #53191 [Bgs]: var_dump a regex failes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155599@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53191&edit=1
ID: 53191
User updated by: michelmulder at gmail dot com
Reported by: michelmulder at gmail dot com
Summary: var_dump a regex failes
Status: Bogus
Type: Bug
Package: Strings related
Operating System: Windows XP SP3
PHP Version: 5.3.3
Block user comment: N
New Comment:
Hi,
When i'm viewing the source, the result is still not as expected. But
when i send a text/plain header i get the right result. I think it's a
bug in FireFox.
Thank you for your answer and sorry for wasting your time.
Previous Comments:
------------------------------------------------------------------------
[2010-10-28 14:15:31] salathe@php.net
Looks like you're viewing the page as HTML. View the source, or send it
out as
plain text. Not a bug.
------------------------------------------------------------------------
[2010-10-28 14:07:12] michelmulder at gmail dot com
Description:
------------
When i run the code i get a wrong result. var_dump stops outputting but
i don't know why.
Test script:
---------------
<?php
var_dump('#(?<![\p{Nd}\p{L}_])(test)(?![\p{Nd}\p{L}_])#iu');
?>
Expected result:
----------------
string(47) "#(?<![\p{Nd}\p{L}_])(test)(?![\p{Nd}\p{L}_])#iu"
Actual result:
--------------
string(47) "#(?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53191&edit=1