You are here: Re: PHP parse error after upgrade « PHP Programming Language « IT news, forums, messages
Re: PHP parse error after upgrade

Posted by Ivαn Sαnchez Ortega on 12/20/07 19:12

Jim McCullars wrote:

> echo ?>

*ahem*. What are you echo()ing, again?

> This script does not generate any errors under 4.4.4. I did look at
> the 4 to 5 compatibility guide on the php.net site but I didn't see
> anything that would explain this. Can someone give me a hint as to why
> this no longer work under version 5? Thanks!

I'm guessing that in PHP4 a "?>" implied a ";". It still does, but if the
start and end tags are in the same line, and there is just one sentence in
between.

Just a guess - grab a copy of the parser's source code and its grammar if
you really want to be sure. In the meantime, please fix your empty
echo()es.


Cheers,
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

You never know how many friends you have until you rent a house on the
beach.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация