php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53191 var_dump a regex failes
Submitted: 2010-10-28 14:07 UTC Modified: 2010-10-28 14:32 UTC
From: michelmulder at gmail dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.3.3 OS: Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michelmulder at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-28 14:07 UTC] 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) "#(?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-28 14:15 UTC] salathe@php.net
-Status: Open +Status: Bogus
 [2010-10-28 14:15 UTC] 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:32 UTC] michelmulder at gmail dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC