RE: [PHP-GTK] Php5 and php-gtk weirdness
| From: | Elizabeth Smith | Date: | Fri, 12 Sep 2003 14:02:21 +0000 |
| Subject: | RE: [PHP-GTK] Php5 and php-gtk weirdness | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3885@lists.php.net to get a copy of this message | ||
First of all, just a quick note:
I don't think you understood the php4 stuff: The problem with running php4
with php-gtk is I need the sqlite, not postgresql or mysql or anything else.
With any version of php4 - no matter where I get it from, be it
snaps.php.net or the ones on kormann.info or the ones included with the
php-gtk download, I'm still getting an error when trying to load the sqlite
module, php itself works fine, and php-gtk, and any other modules I want to
use, but php-gtk with php4 is useless to me without sqlite.... Php5 has
sqlite included, no external module, hence the move to php5 - but that's
just my reasoning for using php5 so I don't get these annoying 'just use
php4' answers
So I guess there is a major problem with php5 and php-gtk concerning object
variables
I have a debug version of my .bat running right now...
As for the var_dump - php seems to be dying completely (and silently) on
$this->window = new GtkWindow($type);
because I can't echo or print_r or var_dump anything after that call, while
before I can just fine, and I'm not getting any errors.
Here's some added weirdness, if I change the $this->window to just $window
and try to do a var_dump, I don't get a thing. If I do a print_r on $window
I get GtkWindow Object
I suppose I should march this off to the bug reports...
-----Original Message-----
From: Paul Zirkle [mailto:keless@skyesurfer.net]
Sent: Friday, September 12, 2003 9:42 AM
To: Elizabeth Smith
Subject: Re: [PHP-GTK] Php5 and php-gtk weirdness
Do you have the latest version ofphp4ts.dll? I run PHP4 w/ P-G, and I store
my GtkWindow inside of a class. So yes you can do it, and yes this seems to
be an issue with PHP5.
try doing a var_dump on $this->window after setting it to a new GtkWindow();
If you dont have "echo" output from your setup, use ob_* functions to
capture the output from var dump into a variable, then write that variable
to a file, and read it in notepad.
-Paul Zirkle AKA Keless