|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-06-24 21:16 UTC] ms419 at freezone dot co dot uk
Description: ------------ http://www.sfu.ca/~jdbates/tmp/php/200906240/core The project I contribute to works with PHP 5.2, but causes PHP 5.3 to segfault, http://qubit-toolkit.org/wiki/index.php?title=Main_Page The project source is available from Subversion, http://qubit-toolkit.googlecode.com/svn/trunk/ I downloaded and built the latest 5.3 snapshot, $ ./configure --enable-debug --with-pdo-mysql [...] $ make [...] I got a backtrace with gdb, http://www.sfu.ca/~jdbates/tmp/php/200906240/screenlog PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Thanks for your help rasmus and johannes, I thought it was going to be very difficult to isolate this bug in a sample script, but with the help of dump_bt, it was not so hard. Thanks for that advice! Here's a sample script which exposes the bug I think I'm experiencing in our project. It works in 5.2 but segfaults in 5.3. <?php class A { public function x() { } } class B extends A { public function x() { $args = func_get_args(); return call_user_func_array(array($this, 'parent::x'), $args); } } class C extends B { } $c = new C; $c->x();