[aur-dev] [PATCH] Workaround for xml tag
Hi again, if you enable short_open_tags in your php.ini, when you try to start AUR you will get an error: "Parse error: syntax error, unexpected T_STRING in ../aur/web/template/header.php on line 1" this because the server believes that <?xml is really <?php so it elaborates the code as php. A simple workaround for this problem is to add the xml code in a print() instruction. I'm sending this patch but I know probably this will be swerve because few people enable short_open_tags, anyway why not try ;) -- Andrea `BaSh` Scarpino Arch Linux Developer
On Thu, Apr 09, 2009 at 02:37:04AM +0200, Andrea Scarpino wrote:
if you enable short_open_tags in your php.ini, when you try to start AUR you will get an error:
"Parse error: syntax error, unexpected T_STRING in ../aur/web/template/header.php on line 1"
In my opinion there's no reason to use short open tags, so I'll pass on this one.
On Sat, Apr 11, 2009 at 8:47 AM, Loui Chang <louipc.ist@gmail.com> wrote:
On Thu, Apr 09, 2009 at 02:37:04AM +0200, Andrea Scarpino wrote:
if you enable short_open_tags in your php.ini, when you try to start AUR you will get an error:
"Parse error: syntax error, unexpected T_STRING in ../aur/web/template/header.php on line 1"
In my opinion there's no reason to use short open tags, so I'll pass on this one.
This is a good reason why short open tags were a dumb idea. When your syntax clashes with a well-known one, you have a problem. -Dan
On Sat, Apr 11, 2009 at 10:52 PM, Dan McGee <dpmcgee@gmail.com> wrote:
This is a good reason why short open tags were a dumb idea. When your syntax clashes with a well-known one, you have a problem.
-Dan
I remember you telling me to turn it on! -- Callan Barrett
participants (4)
-
Andrea Scarpino
-
Callan Barrett
-
Dan McGee
-
Loui Chang