Opened 6 years ago

Last modified 5 years ago

#1283 new enhancement

PHP 5.3 compatibility: Assigning the return value of new by reference is deprecated

Reported by: bergie Owned by: indeyets
Priority: critical Milestone: 8.09.10 Ragnaroek
Component: MidCOM core Version: 8.09 Ragnaroek
Keywords: php53 Cc:

Description

Running Ragnaroek MidCOM on PHP 5.3 I get a lot of:

Deprecated: Assigning the return value of new by reference is deprecated

These are caused by lines like:

$midcom_reflector =& new midcom_helper_reflector($matching_type);

Which must be changed to:

$midcom_reflector = new midcom_helper_reflector($matching_type);

Change History (17)

comment:1 Changed 6 years ago by bergie

(In [23010]) These is_a checks are just plain wrong, refs #1283

comment:2 Changed 6 years ago by piotras

  • Milestone changed from 8.09.6 Ragnaroek to 8.09.7 Ragnaroek

comment:3 Changed 5 years ago by adrenalin

(In [24752]) Removed references to new class, refs #1283.

comment:4 Changed 5 years ago by adrenalin

(In [24753]) Removed references to new class, refs #1283.

comment:5 Changed 5 years ago by bergie

  • Owner changed from bergie to indeyets

comment:6 Changed 5 years ago by bergie

  • Keywords php53 added
  • Type changed from defect to enhancement

comment:7 Changed 5 years ago by indeyets

(In [25317]) eliminating assigning of objects by reference. refs #1283

comment:8 Changed 5 years ago by indeyets

(In [25318]) eliminating assigning of objects by reference. refs #1283

comment:9 Changed 5 years ago by indeyets

(In [25319]) eliminating assigning of objects by reference. refs #1283

comment:10 Changed 5 years ago by indeyets

(In [25321]) eliminating assigning of objects by reference. refs #1283

comment:11 Changed 5 years ago by indeyets

(In [25322]) eliminating assigning of objects by reference. refs #1283

comment:12 Changed 5 years ago by indeyets

(In [25323]) eliminating assigning of objects by reference. refs #1283

comment:13 Changed 5 years ago by indeyets

(In [25324]) eliminating assigning of objects by reference. refs #1283

comment:14 Changed 5 years ago by indeyets

(In [25325]) eliminating assigning of objects by reference. refs #1283

comment:15 Changed 5 years ago by indeyets

(In [25326]) eliminating assigning of objects by reference. refs #1283

comment:16 Changed 5 years ago by indeyets

(In [25327]) eliminating assigning of objects by reference. refs #1283

comment:17 Changed 5 years ago by indeyets

(In [25328]) eliminating assigning of objects by reference. refs #1283

Note: See TracTickets for help on using tickets.