On Tue, November 7, 2006 11:30 am, Michael Caplan wrote:
> I just installed PHP 5.2 on a linux server (compiled from source), and
> am having some strange problems with a script that is reporting a
> fatal
> parse error:
>
> Parse error: syntax error, unexpected $end in
> /xxx/xxx/xxx/functions.php
> on line 1213
>
> This very script parses just a-okay under PHP 5.1.6 (linux), and,
> mysteriously, 5.2 on windows.
>
> I'm sure that the file is identical across all three servers. The
> file
> is pulled from a subversion repository, so it should be identical.
> Any
> ideas?
That usually means an unmatched { or ( or " or ' etc...
So, basically, I'd suggesting copying the files over by hand with FTP
or something and doing a 'diff' to be 100% sure you have the whole
file.
It's also remotely possible that something changed in 5.2...
I never have understood why it was kosher to leave the final ?> off,
for example, so maybe that changed. :-) [I doubt it]
At any rate, you have to confirm that the file *IS* complete first.
After that, post the file if you can, or we've got nothing to say
about it, really...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php