Opened 13 years ago
Closed 13 years ago
#24974 closed defect (bug) (fixed)
Deprecated use of assignment by reference in testcase.php
| Reported by: | jdgrimes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Unit Tests | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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 the PHP docs)
There are two instances of this in /includes/testcase.php. Since WordPress requires at least PHP 5.2, I assume that the unit tests do also.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Removes three unnecessary instances of assignment by reference, two of which are deprecated.