Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8388

Assigning the return value of new by reference is deprecated

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4
    • Fix Version/s: 4.0.5
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When running CiviCRM 4.0 under Drupal 7.2, I am seeing many entries in the error log as follows:

      Assigning the return value of new by reference is deprecated.

      I have run the following command line over a fresh checkout of CiviCRM svn trunk:

      perl -pi -e 's,=\s*&\s*new,= new,' $(egrep -rl '=\s*&\s*new' .)

      The resultant patch is attached.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: