|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45185 creating a GtklistStore
Submitted: 2008-06-05 11:51 UTC Modified: 2008-06-05 13:27 UTC
From: matt at deeks dot biz Assigned:
Status: Not a bug Package: PHP-GTK related
PHP Version: 5.2.6 OS: Win XP sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: matt at deeks dot biz
New email:
PHP Version: OS:


 [2008-06-05 11:51 UTC] matt at deeks dot biz
When creating a GtkListStore I get an error

Reproduce code:
$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);

Expected result:
the list store to be created

Actual result:
Fatal error: Undefined class constant 'TYPE_STRING'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-05 13:27 UTC]
Starting with PHP-GTK 2.0.0 the TYPE constants were moved from the Gtk:: class to Gobject, so use Gobject::TYPE_STRING instead.

This is fixed in the new documentation, but it's not on the website yet (we're migrating it to the new PHP manual format)  and is also addressed in the PHP-GTK changelog

It was also discussed on the mailing lists - please check the mailing list archives, the irc channel, or other sources of help instead of filing bugs for coding issues.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Sep 24 12:01:24 2020 UTC