Re: problem compiling (and the absenceof packages for slackware-9 .1)

From: Date: Mon, 17 Nov 2003 15:12:23 +0000
Subject: Re: problem compiling (and the absenceof packages for slackware-9 .1)
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4165@lists.php.net to get a copy of this message
> /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

« previous php.gtk.general (#4165) next »