FAQ
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

Search Discussions

  • Hannes Landeholm at Mar 10, 2011 at 4:59 pm
    http://brian.moonspot.net/php-history-newline-closing-tag

    ~Hannes
    On 10 March 2011 17:42, Martin Scotta wrote:

    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
  • Michael Morris at Mar 10, 2011 at 5:21 pm
    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 wrote:

    http://brian.moonspot.net/php-history-newline-closing-tag

    ~Hannes
    On 10 March 2011 17:42, Martin Scotta wrote:

    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
    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php
  • Martin Scotta at Mar 10, 2011 at 6:30 pm
    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 wrote:

    http://brian.moonspot.net/php-history-newline-closing-tag

    ~Hannes
    On 10 March 2011 17:42, Martin Scotta wrote:

    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
  • Reindl Harald at Mar 10, 2011 at 6:34 pm

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedMar 10, '11 at 4:43p
activeMar 10, '11 at 6:34p
posts5
users4
websitephp.net

People

Translate

site design / logo © 2022 Grokbase