Re: GtkDialog Part 2

From: Date: Sun, 22 Jul 2001 13:55:10 +0000
Subject: Re: GtkDialog Part 2
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2314@lists.php.net to get a copy of this message
If I do that then I get: <br> <b>Fatal error</b>: Class 'compose_window' does not support overloaded method calls in <b>/home/rdp/rdp_projects/teak/compose_class.php</b> on line <b>61</b><br> which comes from this line: $this->send_button->add($send_box); $send_box is just a GtkHbox. --rdp On Sun, 22 Jul 2001, Andrei Zmievski wrote: > Can you try $this->send_button = new GtkButton()? > > At 03:43 PM 7/21/01 -0400, Rich Payne wrote: > > > > > > Rich, you are a treasure source of interesting bugs. ;-) > > > >I do my best :) > > > > > This one was actually in the Zend engine and I've fixed it in CVS. > > > >OK, I've updated from CVS all of php, Zend, TSRM and php-gtk, and compiled > >eveything. Now I'm getting something new...completly unrelated to > >GtkDialog. There error I'm getting is: > > > ><br> > ><b>Fatal error</b>: Cannot create references to/from string offsets nor > >overloaded objects in <b>/home/rdp/rdp_projects/teak/compose_class.php</b> > >on line <b>55</b><br> > > > >the offending line looks like this: > > $this->send_button = &new GtkButton(); > > > >this is part of a class, looks someting like: > > > >Class Compose_Window extends GtkWindow { > > var $send_button; > > ..... > > function Compose_Window () { > > ..... > > $this->send_button = &new GtkButton(); > > ..... > > } > >} > > > >Is this not valid syntax ? > > > >This worked fine yesterday with 4.0.6 and current php-gtk. > > > > > Wonder if a note needs to be made in the FAQ or something about this, > > since > > > people might get bitten by it before 4.0.7 comes out. > > > >That's probably a good idea. > > > >thanks, > >--rdp > > > >-- > >Rich Payne > >rpayne@alphalinux.org www.alphalinux.org > > > > > >-- > >PHP GTK Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > >For additional commands, e-mail: php-gtk-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -Andrei > -- Rich Payne rpayne@alphalinux.org www.alphalinux.org

« previous php.gtk (#2314) next »