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 = new Test;
> ?>
>
> Stacktrace:
>
> http://www.sebastian-bergmann.de/stuff/stacktrace.txt
Ever tried this in earlier version of PHP? I guess not!!!!!
This is one of the thinks i yet not started to work on.
Here is the gdb output from PHP 4.2.3
(gdb) file /usr/src/PHP_4_2_3/php
Reading symbols from /usr/src/PHP_4_2_3/php...done.
(gdb) set args /var/www/html/php/ext/ob-clean.php
(gdb) run
Starting program: /usr/src/PHP_4_2_3/php /var/www/html/php/ext/ob-clean.php
Program received signal SIGSEGV, Segmentation fault.
0x081746bc in zend_fetch_var_address (opline=0x8230a3c, Ts=0xbf800040, type=1)
at ./zend_execute.c:529
529 zval *varname = get_zval_ptr(&opline->op1, Ts, &free_op1,
BP_VAR_R);
(gdb)
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php