Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22973

Unable to run legacy tests on postgres due to PHP Fatal error: Call to undefined function mysql_escape_string()

    XMLWordPrintable

Details

    Description

      When you try to run tests on eZ Publish legacy, while on Postgres environment you'll get the following errors

      PHP Fatal error:  Call to undefined function mysql_escape_string() in /var/www/ezpublish5/ezpublish_testsystem/lib/ezdb/classes/ezmysqlidb.php on line 844
      PHP Stack trace:
      PHP   1. {main}() /var/www/ezpublish5/ezpublish_testsystem/tests/runtests.php:0
      PHP   2. PHPUnit_TextUI_Command->run() /var/www/ezpublish5/ezpublish_testsystem/tests/runtests.php:34
      PHP   3. ezpTestRunner->handleArguments() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:138
      PHP   4. PHPUnit_TextUI_Command->handleArguments() /var/www/ezpublish5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:336
      PHP   5. ezpTestRunner->handleCustomTestSuite() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:514
      PHP   6. ezpTestRunner->prepareTests() /var/www/ezpublish5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:222
      PHP   7. eZFindTestSuite->__construct() /var/www/ezpublish5/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:171
      PHP   8. PHPUnit_Framework_TestSuite->addTestSuite() /var/www/ezpublish5/ezpublish_testsystem/extension/ezfind/tests/suite.php:21
      PHP   9. PHPUnit_Framework_TestSuite->__construct() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:315
      PHP  10. PHPUnit_Framework_TestSuite->addTestMethod() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:212
      PHP  11. PHPUnit_Framework_TestSuite::createTest() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:838
      PHP  12. PHPUnit_Util_Test::getProvidedData() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:481
      PHP  13. ReflectionMethod->invoke() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Util/Test.php:267
      PHP  14. eZSolrTest::providerTestGetFieldName() /var/www/ezpublish5/vendor/phpunit/phpunit/PHPUnit/Util/Test.php:267
      PHP  15. eZContentClass::fetchByIdentifier() /var/www/ezpublish5/ezpublish_testsystem/extension/ezfind/tests/classes/ezsolr_test.php:24
      PHP  16. eZPersistentObject::fetchObjectList() /var/www/ezpublish5/ezpublish_testsystem/kernel/classes/ezcontentclass.php:1199
      PHP  17. eZPersistentObject::conditionText() /var/www/ezpublish5/ezpublish_testsystem/kernel/classes/ezpersistentobject.php:850
      PHP  18. eZPersistentObject::conditionTextByRow() /var/www/ezpublish5/ezpublish_testsystem/kernel/classes/ezpersistentobject.php:614
      PHP  19. eZMySQLiDB->escapeString() /var/www/ezpublish5/ezpublish_testsystem/kernel/classes/ezpersistentobject.php:691
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: