ZF-3130: Warnings emitted by Zend_Db_Table_Select unit tests

Description

Results from PHP 5.2.5 on Linux:

PHP Warning:  Select query cannot join with another table in /var/local/zf/library/Zend/Db/Table/Select.php on line 191
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. require() /usr/local/bin/phpunit:44
PHP   3. PHPUnit_TextUI_Command::main() /usr/local/lib/php/PHPUnit/TextUI/Command.php:528
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/lib/php/PHPUnit/TextUI/Command.php:112
PHP   5. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/TextUI/TestRunner.php:304
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   9. PHPUnit_Framework_TestSuite->runTest() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:664
PHP  10. PHPUnit_Framework_TestCase->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:684
PHP  11. PHPUnit_Framework_TestResult->run() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:376
PHP  12. PHPUnit_Framework_TestCase->runBare() /usr/local/lib/php/PHPUnit/Framework/TestResult.php:610
PHP  13. PHPUnit_Framework_TestCase->runTest() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:401
PHP  14. ReflectionMethod->invoke() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:476
PHP  15. Zend_Db_Table_Select_TestCommon->testSelectForJoinZendDbTable() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:0
PHP  16. Zend_Db_Table_Select->__toString() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:128
PHP  17. trigger_error() /var/local/zf/library/Zend/Db/Table/Select.php:191
PHP Warning:  Select query cannot join with another table in /var/local/zf/library/Zend/Db/Table/Select.php on line 191
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. require() /usr/local/bin/phpunit:44
PHP   3. PHPUnit_TextUI_Command::main() /usr/local/lib/php/PHPUnit/TextUI/Command.php:528
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/lib/php/PHPUnit/TextUI/Command.php:112
PHP   5. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/TextUI/TestRunner.php:304
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   9. PHPUnit_Framework_TestSuite->runTest() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:664
PHP  10. PHPUnit_Framework_TestCase->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:684
PHP  11. PHPUnit_Framework_TestResult->run() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:376
PHP  12. PHPUnit_Framework_TestCase->runBare() /usr/local/lib/php/PHPUnit/Framework/TestResult.php:610
PHP  13. PHPUnit_Framework_TestCase->runTest() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:401
PHP  14. ReflectionMethod->invoke() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:476
PHP  15. Zend_Db_Table_Select_TestCommon->testSelectForJoinZendDbTable() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:0
PHP  16. Zend_Db_Table_Select->__toString() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:128
PHP  17. trigger_error() /var/local/zf/library/Zend/Db/Table/Select.php:191
PHP Warning:  Select query cannot join with another table in /var/local/zf/library/Zend/Db/Table/Select.php on line 191
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. require() /usr/local/bin/phpunit:44
PHP   3. PHPUnit_TextUI_Command::main() /usr/local/lib/php/PHPUnit/TextUI/Command.php:528
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/lib/php/PHPUnit/TextUI/Command.php:112
PHP   5. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/TextUI/TestRunner.php:304
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   9. PHPUnit_Framework_TestSuite->runTest() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:664
PHP  10. PHPUnit_Framework_TestCase->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:684
PHP  11. PHPUnit_Framework_TestResult->run() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:376
PHP  12. PHPUnit_Framework_TestCase->runBare() /usr/local/lib/php/PHPUnit/Framework/TestResult.php:610
PHP  13. PHPUnit_Framework_TestCase->runTest() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:401
PHP  14. ReflectionMethod->invoke() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:476
PHP  15. Zend_Db_Table_Select_TestCommon->testSelectForJoinZendDbTable() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:0
PHP  16. Zend_Db_Table_Select->__toString() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:128
PHP  17. trigger_error() /var/local/zf/library/Zend/Db/Table/Select.php:191
PHP Warning:  Select query cannot join with another table in /var/local/zf/library/Zend/Db/Table/Select.php on line 191
PHP Stack trace:
PHP   1. {main}() /usr/local/bin/phpunit:0
PHP   2. require() /usr/local/bin/phpunit:44
PHP   3. PHPUnit_TextUI_Command::main() /usr/local/lib/php/PHPUnit/TextUI/Command.php:528
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/lib/php/PHPUnit/TextUI/Command.php:112
PHP   5. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/TextUI/TestRunner.php:304
PHP   6. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   7. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   8. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:647
PHP   9. PHPUnit_Framework_TestSuite->runTest() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:664
PHP  10. PHPUnit_Framework_TestCase->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:684
PHP  11. PHPUnit_Framework_TestResult->run() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:376
PHP  12. PHPUnit_Framework_TestCase->runBare() /usr/local/lib/php/PHPUnit/Framework/TestResult.php:610
PHP  13. PHPUnit_Framework_TestCase->runTest() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:401
PHP  14. ReflectionMethod->invoke() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:476
PHP  15. Zend_Db_Table_Select_TestCommon->testSelectForJoinZendDbTable() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:0
PHP  16. Zend_Db_Table_Select->__toString() /var/local/zf/tests/Zend/Db/Table/Select/TestCommon.php:128
PHP  17. trigger_error() /var/local/zf/library/Zend/Db/Table/Select.php:191

Comments

Please evaluate and categorize/assign as necessary.

This has been already fixed by SVN9577

Changing issues in preparation for the 1.7.0 release.