[arch-projects] AUR: Some markup templates
If you tried to cherry pick commit 2e27c1f695c42408efb6a77d464331ab9440e604 from me and tested the site you might get a fatal T_STRING error. Solution: In php.ini set "short_open_tag = Off" Short tags are deprecated and they've all been replaced with long tags in AUR code. Hmm maybe we should put a .htaccess file with that parameter to make sure of the environment. Please check out the templates any how! Thanks.
http://louipc.dontexist.org/cgi-bin/gitweb.cgi?p=aur/.git;a=commit;h=1525662... Makes sure that open_short_tag = Off via .htaccess
Sorry that last one was bad. Use this :D http://louipc.dontexist.org/cgi-bin/gitweb.cgi?p=aur/.git;a=commitdiff;h=09b...
If we are using long tags, why would we need to force short tags to be off (even though they should). Having short tags on doesn't mean that the long tag format stops working.. I haven't check your patch though..so I don't know why it would be causing problems.
On 10/5/07, eliott <eliott@cactuswax.net> wrote:
I haven't check your patch though..so I don't know why it would be causing problems.
A <?xml tag is being used, which is interpreted by PHP as PHP code. There are only two solutions: 1. Turn short tags off. 2. Hack it by using <?php echo '<?'; ?> Joerie
On 10/4/07, Joerie de Gram <j.de.gram@gmail.com> wrote:
On 10/5/07, eliott <eliott@cactuswax.net> wrote:
I haven't check your patch though..so I don't know why it would be causing problems.
A <?xml tag is being used, which is interpreted by PHP as PHP code. There are only two solutions:
1. Turn short tags off. 2. Hack it by using <?php echo '<?'; ?>
php should only consider "<? foo" a short tag, not "<?foo" . note the space after the ? in the first one. Anyway, turning off php short tags is a good idea regardless.
On 10/8/07, eliott <eliott@cactuswax.net> wrote:
php should only consider "<? foo" a short tag, not "<?foo" . note the space after the ? in the first one.
It's still valid PHP though (even '<?echo'foo'?>' it seems). Probably because the echo-shorthand '<?=$foo?>', deprecated, but still valid.
participants (3)
-
eliott
-
Joerie de Gram
-
Loui