php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch gtk-signal-autoconnect-overrides for PHP-GTK related Bug #51093

Patch version 2010-04-04 22:44 UTC

Return to Bug #51093 | Download this patch
Patch Revisions:

Developer: kalle@php.net

Index: libglade.overrides
===================================================================
--- libglade.overrides	(revision 296770)
+++ libglade.overrides	(working copy)
@@ -327,6 +327,9 @@
     if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|a", &map))
         return;
 
+    if (map)
+        zval_copy_ctor(map);
+
     data.instance = NULL;
     data.extra = map;
     glade_xml_signal_autoconnect_full(GLADE_XML(PHPG_GOBJECT(this_ptr)),
Index: v1.libglade.overrides
===================================================================
--- v1.libglade.overrides	(revision 296770)
+++ v1.libglade.overrides	(working copy)
@@ -159,6 +159,9 @@
 	if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|a", &map))
 		return;
 
+	if (map)
+		zval_copy_ctor(map);
+
 	ac_data = (php_gtk_autoconnect_data *)emalloc(sizeof(php_gtk_autoconnect_data));
 	ac_data->map = map;
 	ac_data->pass_object = pass_object;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC