[wp-trac] [WordPress Trac] #10633: Omit closing PHP tag at the end of a file when using include() or require()

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 5 17:42:35 UTC 2009


#10633: Omit closing PHP tag at the end of a file when using include() or require()
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:                
 Severity:  normal        |    Keywords:  has-patch     
--------------------------+-------------------------------------------------
Changes (by hakre):

  * keywords:  => has-patch


Comment:

 just for having it I did a patch that removes all ending ''?>''-squences
 in ''php''-files. you find the patch attached, but if it makes problems
 applying it, here is a regex that did the job for me in eclipse file
 search / replace:

 {{{
 pattern: \?>(\n*)\s*\Z
 replace: $1
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10633#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list