Re: [PHP-GTK] GtkDialog Part 2
[email protected] (Andrei Zmievski)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
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
>[email protected] www.alphalinux.org
>
>
>--
>PHP GTK Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>To contact the list administrators, e-mail: [email protected]
-Andrei