|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-17 02:42 UTC] sb at sebastian-bergmann dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ There is a small bug in runkit_functions.c leading to a segfault if a function doesn't has an op_array. Think it is the case for all extension functions, which is a problem while using the Gtk::main() loop. Fix is attached and allows now any extension methods to be on stack. It just checks for NULL pointer on ptr->op_array Reproduce code: --------------- ? run-tests.php Index: runkit_functions.c =================================================================== RCS file: /repository/pecl/runkit/runkit_functions.c,v retrieving revision 1.9 diff -r1.9 runkit_functions.c 33c33,34 < if (ptr->op_array->opcodes == op_array->opcodes) { --- > if (ptr->op_array //think its NULL if its an extension method? Problems here with Gtk::main() on stack > && ptr->op_array->opcodes == op_array->opcodes) {