Issues

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

Issue Type: Unit Tests: Problem Created: 2012-05-09T15:21:04.000+0000 Last Updated: 2012-05-31T19:19:56.000+0000 Status: Resolved Fix version(s): Reporter: Adam Lundrigan (adamlundrigan) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

  • FixForZF1.12

Related issues: Attachments:

Description

<pre class="highlight">
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

Posted by Rob Allen (rob) on 2012-05-31T19:19:56.000+0000

Fixed in SVN r24847.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts