#23466 [NEW]: Segmentation fault or misbehaving ob_start on PHP5.0.0-dev

From: Date: Sat, 03 May 2003 16:34:31 +0000
Subject: #23466 [NEW]: Segmentation fault or misbehaving ob_start on PHP5.0.0-dev
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38989@lists.php.net to get a copy of this message
From: php at fuer-et dot de Operating system: Linux, Red Hat 8 PHP version: 5CVS-2003-05-03 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Segmentation fault or misbehaving ob_start on PHP5.0.0-dev <?php class Foo { function bar($str) { return $str.'bar'; } } function baz($str) { return $str."baz\n"; } $foo = new Foo; ob_start('baz'); ob_start(array(&$foo, 'bar')); print 'foo'; ?> This script fails to add 'bar' to the string on every machine when using PHP5, and it segfaults on mine. et@edea:~$ /usr/local/sources/php-4.3.1/sapi/cli/php test.php foobarbaz et@edea:~$ /usr/local/sources/unstable/php5-200305031330/sapi/cli/php test.php Segmentation fault (core dumped) Backtrace is: (gdb) bt #0 0x0816d425 in zend_hash_index_find (ht=0x0, h=0, pData=0x0) at /home/et/sources/unstable/php5-200305031330/Zend/zend_hash.c:979 #1 0x08160a02 in call_user_function_ex (function_table=0x828d128, object_pp=0x0, function_name=0x4026d0b4, retval_ptr_ptr=0xbfffe4e0, param_count=2, params=0xbfffe4e8, no_separation=1, symbol_table=0x0) at /home/et/sources/unstable/php5-200305031330/Zend/zend_execute_API.c:555 #2 0x081467c9 in php_end_ob_buffer (send_buffer=1 '\001', just_flush=0 '\0') at /home/et/sources/unstable/php5-200305031330/main/output.c:241 #3 0x0814693b in php_end_ob_buffers (send_buffer=0 '\0') at /home/et/sources/unstable/php5-200305031330/main/output.c:335 #4 0x0813bc8c in php_request_shutdown (dummy=0x0) at /home/et/sources/unstable/php5-200305031330/main/main.c:1091 #5 0x08181368 in main (argc=2, argv=0xbfffec64) at /home/et/sources/unstable/php5-200305031330/sapi/cli/php_cli.c:1006 #6 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) config.nice: #! /bin/sh # # Created by configure './configure' \ '--enable-bcmath' \ '--with-gmp' \ '--with-mysql' \ '--with-pgsql' \ '--enable-calendar' \ '--with-apxs=/opt/apache/1.3.27/bin/apxs' \ '--with-zlib' \ '--with-bz2' \ '--with-config-file-path=/home/et' \ '--with-openssl' \ '--enable-debug' \ "$@" I know the config file path is odd, i just use the machine for developing and i'm the only one working on it ;) -- Edit bug report at http://bugs.php.net/?id=23466&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23466&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23466&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23466&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23466&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23466&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23466&r=support Expected behavior: http://bugs.php.net/fix.php?id=23466&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23466&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23466&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23466&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23466&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23466&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23466&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23466&r=gnused

« previous php.bugs (#38989) next »