RE: Parse Errors with 5.2 on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Richard,

Thanks for the reply.  I tracked the problem down to short tags being
turned off in the php.ini (I know, short tags, bad, bad).  That fixed
it.

Thanks,

Mike


-----Original Message-----
From: Richard Lynch [mailto:ceo@xxxxxxxxx] 
Sent: Tuesday, November 07, 2006 1:39 PM
To: Michael Caplan
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  Parse Errors with 5.2 on Linux

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux