Re: Re: problem compiling (and the absenceof packages for slackware-9 .1)
| From: | Alan Knowles | Date: | Wed, 19 Nov 2003 05:37:35 +0000 |
| Subject: | Re: Re: problem compiling (and the absenceof packages for slackware-9 .1) | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4183@lists.php.net to get a copy of this message | ||
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:
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com/PHP_GTK/php-gtk-0.5.2/main/php_gtk_object.c:889: `gtk_object_ce' undeclaredLooks 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 argumentseparator in command-line version. */Brandon Reynolds mailto:bmr@comtime.com Systems Engineer Ph: (330) 644-3059 Commercial Timesharing Inc. Fax: (330) 644-8110