|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-10-08 01:01 UTC] omars@php.net
-Assigned To:
+Assigned To: omars
[2014-10-08 01:12 UTC] omars@php.net
[2014-10-08 01:12 UTC] omars@php.net
-Status: Assigned
+Status: Closed
[2014-11-09 22:18 UTC] omars@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ Memory leaks occur when mixing parameter types due to the use of both methods on the same object. A notice shall be produced and the values should get overriden, older parameter shall be removed Test script: --------------- $dismaxQuery = new SolrDisMaxQuery("lucene"); $dismaxQuery->setBoostQuery("failing:val^3") ->addBoostQuery('category','software',2) ->setBoostQuery("end:result^4"); echo $dismaxQuery.PHP_EOL; Expected result: ---------------- Notice: SolrDisMaxQuery::addBoostQuery(): Parameter bq value(s) was overwritten by this call in test.php on line 3 Notice: SolrDisMaxQuery::setBoostQuery(): Parameter bq value(s) was overwritten by this call in test.php on line 4 q=lucene&defType=dismax&bq=end:result^4