From: Marcus Boerger Date: Tue, 22 Feb 2005 21:22:23 +0000 (+0000) Subject: - Need to also revert operator X-Git-Tag: RELEASE_0_3~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=994006abd4ad254e5c3a4f5c89dfdf5488e96c19;p=php - Need to also revert operator --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 34889a7cd3..43adca0a0e 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -836,7 +836,7 @@ static PHP_METHOD(PDO, query) ZVAL_NULL(&stmt->lazy_object_ref); if (dbh->methods->preparer(dbh, statement, statement_len, stmt, NULL TSRMLS_CC)) { - if (ZEND_NUM_ARGS() > 1 || SUCCESS == pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAM_PASSTHRU, stmt, 1)) { + if (ZEND_NUM_ARGS() == 1 || SUCCESS == pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAM_PASSTHRU, stmt, 1)) { PDO_STMT_CLEAR_ERR(); /* now execute the statement */