#35257 [Csd]: Calling ob_flush after creating an ob callback causes "Segmentation fault"

From: Date: Thu, 17 Nov 2005 15:21:02 +0000
Subject: #35257 [Csd]: Calling ob_flush after creating an ob callback causes "Segmentation fault"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88411@lists.php.net to get a copy of this message
ID: 35257 User updated by: maddog2k at maddog2k dot net Reported By: maddog2k at maddog2k dot net Status: Closed Bug Type: Output Control Operating System: Linux PHP Version: 4.4.1 New Comment: Yes, it's fixed :) Many thanks ! Previous Comments: ------------------------------------------------------------------------ [2005-11-17 12:42:38] tony2001@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2005-11-17 12:01:53] maddog2k at maddog2k dot net Description: ------------ This is a copy of bug #35156, which is closed... The code there still segfaults with php4-STABLE-200511160748 (combined with at least Apache 2.0.54/.55). I disabled Zend Optimizer, no change. I've put ob_* functions now into 'disabled_functions' and the logs (Shared Hosting Server) remain free from Segmentation faults. Reproduce code: --------------- (taken from bug #35156) <?php function nooutput($text) { return ""; } print "Before\n"; ob_start("nooutput"); print "Middle\n"; ob_flush(); ob_end_flush(); print "After\n"; ?> Expected result: ---------------- (taken from bug #35156) Before After Actual result: -------------- Apache child Segmentation fault [Thu Nov 17 11:08:59 2005] [notice] child pid 4657 exit signal Segmentation fault (11) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35257&edit=1

« previous php.bugs (#88411) next »