[wp-trac] [WordPress Trac] #32274: Works faster that use __DIR__ instead of dirname(__FILE__) .

WordPress Trac noreply at wordpress.org
Thu May 7 03:25:47 UTC 2015


#32274: Works faster that use __DIR__ instead of dirname(__FILE__) .
-------------------------+-----------------------------
 Reporter:  kmvan        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 We have better choice to improve performance.

 Why not use `__DIR__` instead of `dirname(__FILE__)` to improve
 performance? (require PHP5.3+)

 I think we needn't to be compatible with PHP5.2, PHP5.2 is out-date and
 unsafe.

 Please, it's time to use PHP5.3 or higher new features.

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


More information about the wp-trac mailing list