Issues

ZF-12193: "Constant already defined" notice emitted from Zend_Service_Lucene

Description


PHPUnit 3.4.15 by Sebastian Bergmann.

There were 2 errors:

1) Zend_Http_UserAgentTest::testDeviceClassNameMatchesDesktopTypeIfUserAgentDoesNotMatch
RuntimeException: PHP Notice:  Constant ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED already defined in /tmp/zfdev/trunk/library/Zend/Search/Lucene/Analysis/Analyzer/Common.php on line 26

2) Zend_Http_UserAgentTest::testAllowsPassingStorageConfigurationOptions
RuntimeException: PHP Notice:  Constant ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED already defined in /tmp/zfdev/trunk/library/Zend/Search/Lucene/Analysis/Analyzer/Common.php on line 26

Constant definitions in Zend_Search_Lucene_Analysis_Analyzer_Common need to be prefixed with {{defined(...) ||}}

Comments

Fixed in SVN r24847.