#32953 [Fbk->Opn]: ob calls into ob handler

From: Date: Sun, 15 May 2005 11:36:21 +0000
Subject: #32953 [Fbk->Opn]: ob calls into ob handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79022@lists.php.net to get a copy of this message
ID: 32953 Updated by: momo@php.net Reported By: momo@php.net -Status: Feedback +Status: Open -Bug Type: Output Control +Bug Type: Feature/Change Request Operating System: RHEL 3 PHP Version: 4.3.11, 5.0.4 New Comment: It was nice if php will dedect the recursive and take the control before the segfault, and generate modest error message. if for any reason thats not possible, preventing call of the error hander function within the the same error handler function 'll be handy. Previous Comments: ------------------------------------------------------------------------ [2005-05-11 21:59:44] tony2001@php.net What do you expect to get instead? ob_end_flush() calls output handler, which in turn calls ob_end_flush() and so on. You'll get the same result with this code: <?php function f() { f(); } f(); ?> ------------------------------------------------------------------------ [2005-05-05 12:20:54] momo@php.net Description: ------------ the bellow generating Segmentation fault on both 4.3.11, 5.0.4 the gdb trace looks like infinit recursive. Reproduce code: --------------- <? ob_start(create_function("","ob_end_flush();"));echo "123"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32953&edit=1

« previous php.bugs (#79022) next »