[wp-trac] [WordPress Trac] #29254: PHP Notices when running makepot.php tool on a plugin

WordPress Trac noreply at wordpress.org
Mon Aug 18 20:32:48 UTC 2014


#29254: PHP Notices when running makepot.php tool on a plugin
--------------------------+-----------------------------
 Reporter:  jdgrimes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When I run `~/tools/i18n/makepot.php` on a plugin, I get a bunch of strict
 notices (PHP 5.5).

 {{{
 PHP Strict Standards:  Only variables should be passed by reference in
 /Users/johngrimes/svn/wordpress/trunk/tools/i18n/extract.php on line 31
 PHP Strict Standards:  Only variables should be passed by reference in
 /Users/johngrimes/svn/wordpress/trunk/tools/i18n/extract.php on line 34
 PHP Strict Standards:  Non-static method MakePOT::get_first_lines() should
 not be called statically, assuming $this from incompatible context in
 /Users/johngrimes/svn/wordpress/trunk/tools/i18n/pot-ext-meta.php on line
 35
 PHP Strict Standards:  Non-static method MakePOT::get_addon_header()
 should not be called statically, assuming $this from incompatible context
 in /Users/johngrimes/svn/wordpress/trunk/tools/i18n/pot-ext-meta.php on
 line 38
 PHP Strict Standards:  Non-static method PO::export_entry() should not be
 called statically, assuming $this from incompatible context in
 /Users/johngrimes/svn/wordpress/trunk/tools/i18n/pot-ext-meta.php on line
 45
 PHP Strict Standards:  Non-static method PO::comment_block() should not be
 called statically, assuming $this from incompatible context in
 /Users/johngrimes/svn/wordpress/trunk/src/wp-includes/pomo/po.php on line
 200
 PHP Strict Standards:  Non-static method PO::prepend_each_line() should
 not be called statically, assuming $this from incompatible context in
 /Users/johngrimes/svn/wordpress/trunk/src/wp-includes/pomo/po.php on line
 185
 PHP Strict Standards:  Non-static method PO::poify() should not be called
 statically, assuming $this from incompatible context in
 /Users/johngrimes/svn/wordpress/trunk/src/wp-includes/pomo/po.php on line
 204
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29254>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list