[wp-trac] [WordPress Trac] #24974: Deprecated use of assignment by reference in testcase.php

WordPress Trac noreply at wordpress.org
Tue Aug 6 20:43:39 UTC 2013


#24974: Deprecated use of assignment by reference in testcase.php
--------------------------+-----------------------------
 Reporter:  jdgrimes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Unit Tests    |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 >As of PHP 5, the new operator returns a reference automatically, so
 assigning the result of new by reference results in an E_DEPRECATED
 message in PHP 5.3 and later, and an E_STRICT message in earlier versions.

 (From
 [http://php.net/manual/en/language.operators.assignment.php#example-115
 the PHP docs])

 There are two instances of this in
 [http://core.trac.wordpress.org/browser/tests/trunk/includes/testcase.php#L132
 /includes/testcase.php]. Since WordPress requires at least PHP 5.2, I
 assume that the unit tests do also.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24974>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list