Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-11

trailing "\n"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • PHP5.2.5

    Description

      While I was looking around the files, I found that the files contains unwanted trailing "\n". The files should end with "?>" and not "?>\n".

      If we have a trailing \n, php will send a "\n" as a content, and this cause some functions such as header(), won't work properly.

      Another style may be a Zend Framework style that doesn't have ending "?>".
      http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general

      ---------------------
      I got a feedback about this at log4php-dev@logging.apache.org, that we prefer
      zend-framework style formatting from Curt Arnold <carnold_at_apache.org> and "Michael Gall" <michael_at_wakeless.net>.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kawai Hiroaki Kawai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified