From:             laurentschoenaers at gmail dot com
Operating system: Linux
PHP version:      4.4.7
PHP Bug Type:     Output Control
Bug description:  ob_start() crashes after login

Description:
------------
Hey guys,

I'm running a website, and since yesterday at midnight some part of my
script stopped to run. Nothing has been changed in the scripts and my host
even reïnstalled to whole server for me to make sure the problem isn't
server-related. But still the problem is still here.

If I comment my ob_start() function, the sites starts good, but only parts
are shown and full of header error. Ok no problem, but I want the
ob_start() to be there, but then the site doesn't load, the browser gives a
"page not found error'.

Here's the situation:
I use the ob_start() script on all my pages (homepage, usersection and
adminpanel). Only in the usersection it suddenly stopped to work properly.
After several mails with my host they say there is an "exit signal
segmental fault" or something. How can I resolve this? And how come that
suddenly it stopped to work while nothing was changed to the server nor to
the scripts?

Reproduce code:
---------------
in the top file:

<?php

function callback($buffer)
{
        return (ereg_replace("nothing", "nothing", $buffer));
}

ob_start("callback");

?>

In the bottom file:
<?
mysql_close();
ob_end_flush();
?>

Expected result:
----------------
After a login the usersection should be loaded. Which worked fine till
yesterday at midnight.

Actual result:
--------------
The browsers gives a blank page with "page not found" error.

With the ob_start() commented, it only shows parts of the code, with
suddenly some uncompiled html tages in my page. But mostly only 75% of the
html-code gets through, and the other 25% gets ignored.

I use in my files:

<?
include("include/ig_top.php");

...

include("include/ig_bottom.php");
?>

-- 
Edit bug report at http://bugs.php.net/?id=43014&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43014&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43014&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43014&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43014&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43014&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43014&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43014&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43014&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43014&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43014&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43014&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43014&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43014&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43014&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43014&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43014&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43014&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43014&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43014&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43014&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43014&r=mysqlcfg

Reply via email to