#36521 [Opn->Bgs]: ob_start & file_put_contents - issue
| From: | derick@php.net | Date: | Sat, 25 Feb 2006 16:18:47 +0000 |
| Subject: | #36521 [Opn->Bgs]: ob_start & file_put_contents - issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93658@lists.php.net to get a copy of this message | ||
ID: 36521
Updated by: derick@php.net
Reported By: lunter at interia dot pl
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: winXP
PHP Version: 5.1.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Works fine, make sure you are writing to the correct directory. The
working directory might be different from what you expect it to be.
(use echo getcwd() to find out)
Previous Comments:
------------------------------------------------------------------------
[2006-02-25 01:15:21] lunter at interia dot pl
Description:
------------
file_put_contents does't work in callback funcion
Reproduce code:
---------------
<?
function a($i){
file_put_contents('buffer.txt',$i);
return($i);
}
ob_start('a');
?>
Page contents
Expected result:
----------------
put output buffer to file
Actual result:
--------------
file not created !
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36521&edit=1