I am using output buffering functions, but it seems that in PHP 4.2.0, 4.2.1 and later they don't work. Not that they do not work at all but a very strange situation occures.
I am trying to catch an output from my script and if this output is less then 4KB (4096) in size everything works perfectly, otherwize nothing does, my scripts' output just falls out.
My code is something like this
one.php
<?
session_start();
echo $something;
?>
two.php
<?
ob_start();
include("one.php");
$contents = ob_get_contents();
ob_end_clean();
echo "This is some text";
echo $contents;
?>
If length of the $something variable in one.php is less then 4096 the the output is ok, otherwithe it is reversed.