possible error in manual
| From: | Tony Leake | Date: | Sat, 02 Oct 2004 13:45:29 +0000 |
| Subject: | possible error in manual | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1214@lists.php.net to get a copy of this message | ||
on the page
http://gtk.php.net/manual/en/gtk.gtktreeitem.method.set_subtree.php
the following code appears
// Create the top level tree item.
$treeItem =& new GtkTreeItem('Top Level Item');
// Create the sub tree with one sub tree item.
$subTree =& new GtkTree;
$subTreeItem =& new GtkTreeItem('Sub Level Item');
$subTree->append($subTreeItem);
// Add the sub tree to the top level item.
$treeItem->set_subtree($subTree);
if I paste that code and nothing else (except to dl the php_gtk.so) into a file i get the folowing
error and segfault
Gtk-CRITICAL **: file gtkwidget.c: line 3359 (gtk_widget_set_parent):
assertion `parent != NULL' failed.
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
Segmentation fault
I am using php 4.3.8, php-gtk 1.0.1 on Debian Linux
hope that is of some help
tony