hi all,
<pre> 1 <?php ; ?>1 2 2 3 <?php ; ?>3 </pre> <pre> 1 1<?php ; ?> 2 2 3 3<?php ; ?> </pre>First try works... but second fails
output:
1 1
2 2
3 3
1 12 2
3 3
is this the expected behavior?
Martin Scotta
http://brian.moonspot.net/php-history-newline-closing-tag
~Hannes
hi all,
<pre> 1 <?php ; ?>1 2 2 3 <?php ; ?>3 </pre> <pre> 1 1<?php ; ?> 2 2 3 3<?php ; ?> </pre>First try works... but second fails
output:
1 1
2 2
3 31 12 2
3 3is this the expected behavior?
Martin Scotta
The RFC I just posted also addresses this problem by not requiring all files
to have tags at all.
On Thu, Mar 10, 2011 at 11:59 AM, Hannes Landeholm landeholm@gmail.comwrote:
http://brian.moonspot.net/php-history-newline-closing-tag
~Hannes
hi all,
<pre> 1 <?php ; ?>1 2 2 3 <?php ; ?>3 </pre> <pre> 1 1<?php ; ?> 2 2 3 3<?php ; ?> </pre>First try works... but second fails
output:
1 1
2 2
3 31 12 2
3 3is this the expected behavior?
Martin Scotta
ok, I think I got it.
so you think it's safe to include an empty new line after a line that ends
with ?> ?
Martin Scotta
On Thu, Mar 10, 2011 at 1:59 PM, Hannes Landeholm landeholm@gmail.comwrote:
http://brian.moonspot.net/php-history-newline-closing-tag
~Hannes
hi all,
<pre> 1 <?php ; ?>1 2 2 3 <?php ; ?>3 </pre> <pre> 1 1<?php ; ?> 2 2 3 3<?php ; ?> </pre>First try works... but second fails
output:
1 1
2 2
3 31 12 2
3 3is this the expected behavior?
Martin Scotta
Am 10.03.2011 19:30, schrieb Martin Scotta:
ok, I think I got it.
so you think it's safe to include an empty new line after a line that ends
with ?> ?Martin Scotta
It is a bad idea to add anything automatic
There are CLI scripts out there runnign as cron-jobs
and if you do this on Fedora/RHEL you get a mail
everytime the cron is called, an d yes it is fine that
there are mails with each output of cronjobs so that
you get a message if there is a php error/warning