RE: [PHP-GTK] Re: problem compiling (and the absenceof packages f or slackware-9 .1)
| From: | Brandon M. Reynolds | Date: | Thu, 20 Nov 2003 14:55:15 +0000 |
| Subject: | RE: [PHP-GTK] Re: problem compiling (and the absenceof packages f or slackware-9 .1) | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4210@lists.php.net to get a copy of this message | ||
I don't even have that option. I was trying to use php5 however.
Brandon Reynolds mailto:bmr@comtime.com
Systems Engineer Ph: (330) 644-3059
Commercial Timesharing Inc. Fax: (330) 644-8110
> -----Original Message-----
> From: Alan Knowles [mailto:alan@akbkhome.com]
> Sent: Wednesday, November 19, 2003 12:38 AM
> To: Brandon M. Reynolds
> Cc: php-gtk-general@lists.php.net
> Subject: Re: [PHP-GTK] Re: problem compiling (and the
> absenceof packages
> for slackware-9 .1)
>
>
>
> out of interest what does this output?
>
> php -r 'print_r($HTTP_SERVER_VARS["argv"]);' xx yy
>
> I get:
> Array
> (
> [0] => -
> [1] => xx
> [2] => yy
> )
>
> what version of php are you using..? (although It seems odd that this
> would have changed..)
>
> Regards
> Alan
>
>
>
>
>
>
> Brandon M. Reynolds wrote:
> >>/PHP_GTK/php-gtk-0.5.2/main/php_gtk_object.c:889:
> >>`gtk_object_ce' undeclared
> >
> >
> > Looks like the problem here is in the auto generated code
> > ext/gtk+/gen_gtk.[ch]
> > This appears to be a problem with generator/generator.php
> and it's handing
> > of command line arguments. Maybe php changed the way they
> are passed?
> >
> > Below is a diff. It's not really the right fix, but it may
> get you by.
> >
> > --- php-gtk-1.0.0/generator/generator.php Mon Jun 16
> 03:07:25 2003
> > +++ php-gtk-1.0.0-bmr/generator/generator.php Mon Nov 17
> 09:52:11 2003
> > @@ -745,7 +745,17 @@
> >
> >
> > $argc = $HTTP_SERVER_VARS['argc'];
> > -$argv = $HTTP_SERVER_VARS['argv'];
> > +$argv = array();
> > +
> > +$argv[] = "generator.php";
> > +for($ii=0;$ii<count($HTTP_SERVER_VARS['argv']);$ii++) {
> > + if($ii > 1) {
> > + $argv[] = $HTTP_SERVER_VARS['argv'][$ii];
> > + } else {
> > + echo "// ignoring
> > '".$HTTP_SERVER_VARS['argv'][$ii]."'\n";
> > + }
> > +}
> > +// $argv = $HTTP_SERVER_VARS['argv'];
> >
> > /* An ugly hack to counteract PHP's pernicious desire to
> treat + as an
> > argument
> > separator in command-line version. */
> >
> > Brandon Reynolds mailto:bmr@comtime.com
> > Systems Engineer Ph: (330) 644-3059
> > Commercial Timesharing Inc. Fax: (330) 644-8110
> >
>
>
> --
> Can you help out?
> Need Consulting Services or Know of a Job?
> http://www.akbkhome.com
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>