The local variable $num_args may not have been initialized and method "condition" has only 3 parameters
file : /includes/database/select.inc line 640

Comments

marcingy’s picture

Status: Active » Postponed (maintainer needs more info)

How do you recreate this bug thanks?

LG666’s picture

file : /includes/database/select.inc Line 621

  public function havingCondition($field, $value = NULL, $operator = '=') {
    $this->query->condition($field, $value, $operator, $num_args);
    return $this;
  }

must be changed by

  public function havingCondition($field, $value = NULL, $operator = '=') {
    $this->query->condition($field, $value, $operator);
    return $this;
  }

Drupal 7.8 running on PHP with error_reporting = E_ALL | E_STRICT generates a lot of logs

damien tournoud’s picture

Version: 7.8 » 8.x-dev
Status: Postponed (maintainer needs more info) » Active

The query extender. Always so lovely.

pillarsdotnet’s picture

Title: incorrect number of parameters on call of "condition" method » Remove bogus $num_args parameter in call to SelectQuery::condition() from SelectQueryInterface::havingCondition().
Status: Active » Needs review
StatusFileSize
new1.02 KB

Patch.

pillarsdotnet’s picture

Issue tags: +Needs backport to D7

Tagging for backport.

mac_weber’s picture

Status: Needs review » Reviewed & tested by the community
chx’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Sigh. This does not even have tests and there's a lot more bugs re having, I will find the revelant issue and edit this message.Edit: #1258000: SelectQuery::countQuery() inappropriately removes SQL expressions