ID:               14529
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Critical
 Bug Type:         Output Control
 Operating System: Linux RH 7.2
 PHP Version:      4.3.0-dev
 New Comment:

We MAY have seen a similar problem (not using Zend Optimizer, though --
whew!).  We had problems with locutions like

function postprocess($buf)
{
  $buf = preg_replace("/some stuff/","some other stuff",$buf);
  return $buf;
}

ob_start("postprocess");

Changing the postprocess function to

function postprocess($ibuf)
{
  $obuf = preg_replace("/some stuff/","some other stuff",$ibuf);
  return $obuf;
}

seems to have eliminated the problem.


Previous Comments:
------------------------------------------------------------------------

[2002-03-13 10:41:37] [EMAIL PROTECTED]

A question for [EMAIL PROTECTED] :
Did you try it before the patch was applied in 4.0.6

Of the pages giving me grief, some of them have forms and some of them
don't.

I don't have the access at my end to try my scripts on a different
linux version.

------------------------------------------------------------------------

[2002-03-13 08:57:03] [EMAIL PROTECTED]

i faintly remember issues with the gcc version
RedHat uses (experimental gcc prerelease from
their own labs or something)

there were definetly problems in the past that 
where RedHat-only :(

do you have a chance to test on another linux
distribution or to compile on another one and
transfer the binaries to your RH system?

------------------------------------------------------------------------

[2002-03-13 08:31:53] [EMAIL PROTECTED]

Which webserver and version do you use?

Derick

------------------------------------------------------------------------

[2002-03-13 08:19:41] [EMAIL PROTECTED]

Further to my previous comment.  I downgraded to 4.0.6 with the last
file upload patch and I am still getting the problem.

------------------------------------------------------------------------

[2002-03-13 07:10:42] [EMAIL PROTECTED]

RH 7.2 / PHP 4.1.1 & 4.1.2 (tried both).

My one comment that may be useful is that I am only having this problem
on pages that include HTML forms and form elements.  If I remove a few
form elements from a form it happily renders the page.

I have a few very simple pages that contain very little in the way of
PHP but keep getting truncated at certain points.

No segfault and no errors in the log files to correspond to the time of
the failure.

There doesn't seem to be a particular pattern or size issue.  I've
tried other recommendations in this group but have not been able to get
any success.

There seems to be a size issue somewhere of some sort because I
stripped a page back a line at a time until it all rendered, and then
started adding in extra PHP until it started truncating again.

Please e-mail me if you would like the HTML/PHP pages that contain the
HTML forms. In the mean time I heading for PHP 4.0.6...

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14529

-- 
Edit this bug report at http://bugs.php.net/?id=14529&edit=1

Reply via email to