php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20642 ini setting output_buffering set to PHP_INI_ALL
Submitted: 2002-11-26 04:44 UTC Modified: 2003-03-04 04:10 UTC
From: duh at dowebwedo dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.3 OS: Linux GNU/Debian 3.0r0
Private report: No CVE-ID: None
 [2002-11-26 04:44 UTC] duh at dowebwedo dot com
Hello,

I am writing a php shell script (as I do very often in crontabs and procmail setups) only this time I use stdin/stdout for user interaction with the script. The only problem is that output_buffering defaults to 4096 which results in a script that is really not workable since there is no screen output (output < 4096). Also the flush() command is no help (I still get nothing, I don't know whether this is a bug or a result of an ini setting).

To fix this problem I can only change the php.ini value to 0 but this is really not what I want since this is a server wide change. I'd rather use ini_set("output_buffering","0") instead.

So my change request in short is, can the rights for altering the ini variable output_buffering change from PHP_INI_PERDIR|PHP_INI_SYSTEM to PHP_INI_ALL in future versions?

Jeroen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-26 20:39 UTC] sniper@php.net
No, it can't.

 [2002-11-27 02:56 UTC] duh at dowebwedo dot com
This might sound like bogus to you but for a professional environment this certainly is NOT acceptable. As a programmer I know everything is possible, it only depends on how much effort you put into it. You could at least try to point out why you deny this change request instead of a mere "no I can't".
 [2002-11-27 03:01 UTC] edink@php.net
Just put 
@ob_end_flush();
on top of your script. No need for changing ini settings.

 [2003-03-04 04:10 UTC] moriyoshi@php.net
Related to bug #20800.
We should take a look into this issue. WFX?

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 03:01:31 2024 UTC