php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36522 ob_start & file_get_contents - issue
Submitted: 2006-02-25 01:18 UTC Modified: 2006-02-25 17:16 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: lunter at interia dot pl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: winXP
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: lunter at interia dot pl
New email:
PHP Version: OS:

 

 [2006-02-25 01:18 UTC] lunter at interia dot pl
Description:
------------
file_get_contents does't work in callback funcion

Reproduce code:
---------------
<?
 function add($i){
  $i.=file_get_contents('add.txt');
  return($i);
 }
 ob_start('add');
?>
Page contents

Expected result:
----------------
add to output buffer data from file

Actual result:
--------------
data not added !

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-25 17:16 UTC] derick@php.net
Same issue as bug #36521 (yes I know that that is a different function).
 [2010-05-01 17:48 UTC] afshin dot meh at gmail dot com
Also i have this problem...
Is there any patch for this bug?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 01:00:02 2025 UTC