|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57896 Segfault in conjunction with PHP-GTK
Submitted: 2007-11-01 10:34 UTC Modified: 2007-11-17 02:42 UTC
From: php-pecl at stefan-marr dot de Assigned:
Status: Closed Package: runkit (PECL)
PHP Version: 5_2 CVS-2007-11-01 OS: Win32/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php-pecl at stefan-marr dot de
New email:
PHP Version: OS:


 [2007-11-01 10:34 UTC] php-pecl at stefan-marr dot de
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
< 		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) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-17 02:42 UTC] sb at sebastian-bergmann dot de
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 02:01:27 2023 UTC