php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68339 Something use by var_dump and str_shuffle crash
Submitted: 2014-11-03 09:34 UTC Modified: 2014-12-30 10:42 UTC
From: 125155 at supinfo dot com Assigned:
Status: No Feedback Package: Output Control
PHP Version: 5.5.18 OS: Debian
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 125155 at supinfo dot com
New email:
PHP Version: OS:

 

 [2014-11-03 09:34 UTC] 125155 at supinfo dot com
Description:
------------
In my project i try to generate some string with a la of special char ...
when my code crash randomly i try use var_dump ...
and var_dump crash O_o !!!!


Test script:
---------------
var_dump("<?");

or 

str_shuffle("<?");

Expected result:
----------------
var_dump();
--------------
string(2) "<?"

str_shuffle();
--------------
<? or ?> 

Actual result:
--------------
var_dump();
--------------
string(2) "

str_shuffle();
--------------
no output

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-03 09:41 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2014-11-03 09:41 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

The code you've given works fine on its own. Since both of those strings have a < in common, if you're outputting the results to check that they work then you need to be looking at the HTML source of the page and not what your browser is showing you.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC