Bug 183339 - parse_str does not preserve null chars
Summary: parse_str does not preserve null chars
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: php
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact: Kevin Baker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-28 12:33 UTC by Glen Scott
Modified: 2014-12-01 23:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 16:10:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Glen Scott 2006-02-28 12:33:38 UTC
Description of problem:

parse_str function does not seem to preserve null characters:

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

<?php

$qstring = 'category[]=green%00yellow%00red';

parse_str( $qstring );
var_dump( $category );

?>

  
Actual results:

array(1) { [0]=> string(16) "greenyellowred" }

Expected results:

array(1) { [0]=> string(18) "green\0yellow\0red" }

Additional info:

Comment 2 Jiri Pallich 2012-06-20 16:10:52 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.


Note You need to log in before you can comment on or make changes to this bug.