# EOL removed after ?>

- Thread: https://externals.io/message/51658
- Original archive: https://news-web.php.net/php.internals/51658
- Started by Martin Scotta on 2011-03-10T16:42:59+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51658 — Martin Scotta — 2011-03-10T16:42:59+00:00

URL: https://externals.io/message/51658#51658

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

---

## #51660 — Hannes Landeholm — 2011-03-10T16:59:26+00:00

URL: https://externals.io/message/51658#51660 · In reply to: #51658

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       3
>
> 1       12      2
> 3       3
>
> is this the expected behavior?
>
>  Martin Scotta

---

## #51661 — Michael Morris — 2011-03-10T17:17:07+00:00

URL: https://externals.io/message/51658#51661 · In reply to: #51660

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.com>wrote:

> http://brian.moonspot.net/php-history-newline-closing-tag
>
> ~Hannes
>
> 
> > […]

---

## #51664 — Martin Scotta — 2011-03-10T18:30:26+00:00

URL: https://externals.io/message/51658#51664 · In reply to: #51660

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.com>wrote:

> http://brian.moonspot.net/php-history-newline-closing-tag
>
> ~Hannes
>
> 
> > […]

---

## #51665 — Reindl Harald — 2011-03-10T18:34:28+00:00

URL: https://externals.io/message/51658#51665 · In reply to: #51664

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
