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

Memory leak on domain_get if called twice using current_domain

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: None
    • Labels:
      None

      Description

      Test below fails with error DB_DataObject Error: You cannot do two queries on the same object (copy it before finding)

      • This test checks for a memory leak observed when doing 2 gets on current domain
        */
        public function testGetCurrentDomainTwice() { $domain = civicrm_api('domain', 'getvalue', array( 'version' => 3, 'current_domain' => 1, 'return' => 'name')); $this->assertAPISuccess($domain); $domain = civicrm_api('domain', 'getvalue', array( 'version' => 3, 'current_domain' => 1, 'return' => 'name')); $this->assertAPISuccess($domain); }

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: