[wp-trac] [WordPress Trac] #11593: Package Text_Diff contains &new
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 13:12:50 UTC 2009
#11593: Package Text_Diff contains &new
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version: 2.9
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by westi):
I believe all of the instances of &new we have in WordPress as for PHP4
backwards compatibility reasons.
From: http://www.php.net/manual/en/language.references.whatdo.php
... The same syntax can be used with functions that return references, and
with the new operator (since PHP 4.0.4 and before PHP 5.0.0) ... Since PHP
5, new returns a reference automatically, so using =& in this context is
deprecated and produces an E_STRICT message.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11593#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list