Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Marcus Börger
At 10:10 31.08.2002, Sebastian Bergmann wrote: Reproducing script: ?php class Test { function Test() { ob_start(array($this, 'transform')); } function transform($buffer) { ob_end_clean(); return $buffer; } } $test =

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Sebastian Bergmann
Marcus Börger wrote: Ever tried this in earlier version of PHP? I guess not! I tested it with PHP 4.2.3-RC1, and it's broken there, too. I did not claim that you broke this one, Marcus, so why the harsh tone? -- Sebastian Bergmann http://sebastian-bergmann.de/

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Marcus Börger
At 15:06 01.09.2002, Sebastian Bergmann wrote: Marcus Börger wrote: Ever tried this in earlier version of PHP? I guess not! I tested it with PHP 4.2.3-RC1, and it's broken there, too. I did not claim that you broke this one, Marcus, so why the harsh tone? Because you reverted

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Zeev Suraski
At 16:10 01/09/2002, Marcus Börger wrote: The problem is that in function PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS_DC) the user function is called wether or not send_buffer is zero. (Zero means flush here and means the function must not be called, as far

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Marcus Börger
At 15:25 01.09.2002, Zeev Suraski wrote: At 16:10 01/09/2002, Marcus Börger wrote: The problem is that in function PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS_DC) the user function is called wether or not send_buffer is zero. (Zero means flush here and

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Zeev Suraski
At 17:51 01/09/2002, Marcus Börger wrote: At 15:25 01.09.2002, Zeev Suraski wrote: At 16:10 01/09/2002, Marcus Börger wrote: The problem is that in function PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS_DC) the user function is called wether or not send_buffer

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Marcus Börger
At 17:10 01.09.2002, Zeev Suraski wrote: At 17:51 01/09/2002, Marcus Börger wrote: At 15:25 01.09.2002, Zeev Suraski wrote: At 16:10 01/09/2002, Marcus Börger wrote: The problem is that in function PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS_DC) the user

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Sebastian Bergmann
Marcus Börger wrote: The problem here again is that in ob handlers no ob_xxx() function can be called. FYI: I know that I shouldn't do that, but I tried ?php class Test { function Test() { ob_start(array($this, 'transform')); } function

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Marcus Börger
At 18:02 01.09.2002, Sebastian Bergmann wrote: Marcus Börger wrote: The problem here again is that in ob handlers no ob_xxx() function can be called. FYI: I know that I shouldn't do that, but I tried ?php class Test { function Test() { ob_start(array($this,

Re: [PHP-DEV] Segfault in ob_*() callback

2002-09-01 Thread Yasuo Ohgaki
This is known issue for a long time. Sebastian Bergmann wrote: Marcus Börger wrote: The problem here again is that in ob handlers no ob_xxx() function can be called. *SNIP* It'd be okay IMHO to prohibit ob_*() calls inside a handler. There are functions like this. i.e. array_filter,