WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16752, comment 1


Ignore:
Timestamp:
03/29/2011 11:18:43 AM (7 years ago)
Author:
hakre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16752, comment 1

    initial v1  
    1 I don't know how much the trade-off is for that, but the PHP manual states the following
     1I don't know how much the trade-off is for that, but the PHP manual states the following:
     2
     3> Returning by reference is useful when you want to use a function to find to which variable a reference should be bound. Do not use return-by-reference to increase performance. The engine will automatically optimize this on its own. Only return references when you have a valid technical reason to do so.
     4
     5I think in PHP 4 code it was returned by reference for memory reasons. We should not do that any longer because we don't need it.
    26
    37Related: #16661, #16813, #16917