Re: Segfault in ob_*() callback
| From: | (Marcus Börger) | Date: | Sun, 01 Sep 2002 13:02:55 +0000 |
| Subject: | Re: Segfault in ob_*() callback | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87674@lists.php.net to get a copy of this message | ||
At 10:10 31.08.2002, Sebastian Bergmann wrote:
Reproducing script: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)<?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
at ./zend_execute.c:529 529 zval *varname = get_zval_ptr(&opline->op1, Ts, &free_op1, BP_VAR_R);(gdb)