php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54174 Buffer disclosure in case a fatal error occurs
Submitted: 2011-03-06 15:34 UTC Modified: 2011-03-06 16:05 UTC
From: neweracracker at gmail dot com Assigned:
Status: Duplicate Package: Output Control
PHP Version: 5.3.5 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 + 49 = ?
Subscribe to this entry?

 
 [2011-03-06 15:34 UTC] neweracracker at gmail dot com
Description:
------------
If a fatal error occurs buffer contents are disclosured.

Test script:
---------------
<?php
set_time_limit(1);
ob_start();
echo "You shouldn't see this!";
sleep(2); //comment this and you won't see the line above in output ;)
ob_end_clean();
?>

Expected result:
----------------
I expected not seeing "You shouldn't see this!" and just the fatal error

Actual result:
--------------
I see "You shouldn't see this!" and the fatal error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-06 15:45 UTC] neweracracker at gmail dot com
I am using php.ini-development as my php.ini to reproduce this bug.
 [2011-03-06 16:05 UTC] felipe@php.net
-Status: Open +Status: Duplicate
 [2011-03-06 16:05 UTC] felipe@php.net
Duplicated of #54114
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC