ob_start and PHP 4.1 ob_start and PHP 4.1
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

ob_start and PHP 4.1

Started by Nibbler, June 01, 2006, 02:41:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nibbler

I added a call to ob_start() into init.inc.php to solve issues of whitespace in config.inc.php without noticing that the functon is only available from PHP 4.2. The current stated minimum requirement is 4.1 Shall I a) remove the code b) add in a call to function_exists() or c) do something else ?

Paver

Are you sure?  Looking at the PHP docs, I don't see such a version restriction.  In fact, it mentions another output buffer function for 4.0.4. 

I see 14 uses of ob_start() in the current scripts.  So if the output buffer is only available in 4.2 and up, I think we need to change the Coppermine requirements.  I know some plugins depend upon the "page_html" filter which is only called once the output buffer is flushed.

kegobeer

ob_start is available for all versions of PHP 4/5.  ob_clean is 4.2.0 and later.  In your other post, you commented out ob_start and ob_clean, but perhaps replacing ob_clean with ob_end_clean (which is available for all versions) would perform the same action?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

Yes, I meant ob_clean(), sorry. I didnt try ob_end_clean, perhaps that will work.

Joachim Müller

If minimum requirements need to be raised from PHP4.1 to PHP4.2, that would be fine with me. Imo there should be slight pressure on webhosts to upgrade their outdated PHP versions. ;D

Joachim Müller

Changed corresponding section in docs: minimum requirements are PHP4.2.0 now both in stable and devel branch of CVS. Subsequently, this will go into cpg1.4.9 and cpg1.5.0. Marking as "fixed".