|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67216 Segfault on SetGroupBy
Submitted: 2014-05-06 12:54 UTC Modified: 2014-05-06 13:22 UTC
From: saprykin dot dmitry at gmail dot com Assigned: tony2001 (profile)
Status: Closed Package: sphinx (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-05-06 12:54 UTC] saprykin dot dmitry at gmail dot com
$sphinxClient->SetGroupBy('tags', SPH_GROUPBY_ATTR, "@count desc");
causes php segfault


static PHP_METHOD(SphinxClient, setGroupBy)
  int attribute_len, groupsort_len, func, res;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|s", &attribute, &attribute_len, &func, &groupsort, &groupsort_len) == FAILURE) {

Long parameter declaration for "zend_parse_parameters" but int "func" variable


SetGroupBy-params-bugfix (last revision 2014-05-06 12:56 UTC by saprykin dot dmitry at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-06 12:58 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: tony2001
 [2014-05-06 13:22 UTC]
-Status: Assigned +Status: Closed
 [2014-05-06 13:22 UTC]
Fixed in Git, thanks a lot for reporting this.
I'll release new version in a few minutes.
 [2014-05-06 13:22 UTC]
Automatic comment on behalf of
Log: fix bug #67216 (segfault on setGroupBy())
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Jan 29 16:05:54 2023 UTC