ID: 43014 Updated by: [EMAIL PROTECTED] Reported By: laurentschoenaers at gmail dot com -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Linux PHP Version: 4.4.7 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2007-10-18 05:52:07] laurentschoenaers at gmail dot com 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 this bug report at http://bugs.php.net/?id=43014&edit=1