Re: Fully object-oriented version
At 10:08 PM +0100 3/13/01, Martin Geisler wrote: > >I think we should make a file with functions like this, so that people >who are using PHP3 could include it to get access to the new function >in PHP4. > Yeah, I think your right, Martin. sorry to keep throwing these back at ya, but I found another... func_num_args() -fred
Re: Fully object-oriented version
Fred Wunderlich <[EMAIL PROTECTED]> writes: > At 8:37 PM +0100 3/13/01, Martin Geisler wrote: > > > >Okay - how about the new version beta-1.9.1, is it any better? > > > > Well, I guess it all depends on how you define "better". ;) > > Unfortunately, in_array() (in locale_common.php) is not supported in PHP > 3+. I've run into this a lot. Sorry about that, I should have know better. If you place this code in a file, and then include it before the rest of the files, then I think it should work: I think we should make a file with functions like this, so that people who are using PHP3 could include it to get access to the new function in PHP4. > -fred > > > > -- Best regards, Martin Geisler Checkout http://www.gimpster.com for: PHP Weather => Shows the current weather on your webpages. PHP Shell => A telnet-connection (almost :-) in a PHP page.
Re: Fully object-oriented version
At 8:37 PM +0100 3/13/01, Martin Geisler wrote: > >Okay - how about the new version beta-1.9.1, is it any better? > Well, I guess it all depends on how you define "better". ;) Unfortunately, in_array() (in locale_common.php) is not supported in PHP 3+. I've run into this a lot. -fred
Re: Fully object-oriented version
Fred Wunderlich <[EMAIL PROTECTED]> writes: > At 9:00 PM +0100 3/11/01, Martin Geisler wrote: > > >Do you also get this error if you make a normal function, like this: > > > > >function test($array = array()) { > > return count($array); > >} > >?> > > Yep! Same error: > > "Parse error: parse error in /testwx.php on line 2" > > -fred Okay - how about the new version beta-1.9.1, is it any better? -- Best regards, Martin Geisler Checkout http://www.gimpster.com for: PHP Weather => Shows the current weather on your webpages. PHP Shell => A telnet-connection (almost :-) in a PHP page.
Re: Fully object-oriented version
At 9:00 PM +0100 3/11/01, Martin Geisler wrote: >Do you also get this error if you make a normal function, like this: > >function test($array = array()) { > return count($array); >} >?> Yep! Same error: "Parse error: parse error in /testwx.php on line 2" -fred
Re: Fully object-oriented version
Fred Wunderlich <[EMAIL PROTECTED]> writes: > Hi Martin, > > Just for grins, I installed phpweather-1.9 on a box running php > 3.0.16. > > Index.php errors with: > > Parse error: parse error in base_object.php on line 35 > > It doesn't seem to like: > > ($input = array()) So theres problem... It does say that array() is really a language-construct and not a normal function in the manual. Perhaps this is why they wrote that notice :-) Do you also get this error if you make a normal function, like this: If so, then perhaps we should just make the argument mandatory? > Hope that helps. If this is the error that is preventing phpweather from running on boxes with php3, then it's been a great help! > -fred > > > > -- Best regards, Martin Geisler Checkout http://www.gimpster.com for: PHP Weather => Shows the current weather on your webpages. PHP Shell => A telnet-connection (almost :-) in a PHP page.
RE: Fully object-oriented version
Hi Martin, Just for grins, I installed phpweather-1.9 on a box running php 3.0.16. Index.php errors with: Parse error: parse error in base_object.php on line 35 It doesn't seem to like: ($input = array()) Hope that helps. -fred