Re: [PHP-GTK] Assignment evalution weirdness

[email protected] ("Sander Roobol") Fri, 10 Aug 2001 14:15:02 +0200
Newsgroups php.gtk
Message-ID <004901c12196$157429f0$013910ac@grotepc>
All gtk-classes seem to work incorrect, except:
-GtkData
-GtkObject
-GtkTooltips
-GtkItemFactory
I checked all classes that are directly derived from the above, and they do
not echo anything. Very strange...

Sander

----- Original Message ----- 
From: "Markus Fischer" <[email protected]>
To: <[email protected]>
Sent: Friday, August 10, 2001 12:46 PM
Subject: [PHP-GTK] Assignment evalution weirdness


> Example one (without using Gtk)
> 
> <?
>     class foo {
>         function foo() {
>             $a = 3;
>             if( ( $this->b = $a) == 3) {
>                 echo "3\n";
>             }
>         }
>     }
> 
>     $obj = new foo;
> 
> ?>
> 
> when ran outputs 3
> 
> 
> Same with extending GtkWindow:
> 
> <?
>     dl( 'php_gtk.so');
> 
>     class foo extends GtkWindow {
>         function foo() {
>             $a = 3;
>             if( ( $this->b = $a) == 3) {
>                 echo "3\n";
>             }
>         }
>     }
> 
>     $obj = new foo;
> 
> ?>
> 
> when ran outputs nothing (in other words: the assignment evalutes
> to NULL, verified with a dump_var).
> 
> 
> this isn't expected, isn't it ?
> 
> (btw, in the first example you can extend foo and it still works)
> 
> - Markus
> 
> 
> 
> -- 
> Markus Fischer,  http://guru.josefine.at/~mfischer/
> EMail:         [email protected]
> PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
> 
> -- 
> 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]
>