1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 17:13:31 +02:00

This change seems to fix bugs 7158, 7807, 8531, and 8636. After asking why this patch was applied no one seemed to respond with anything useful. If you find this change in error, sorry, I tested it on as many systems as I could.

This commit is contained in:
Dan Kalowsky
2001-04-17 02:02:36 +00:00
parent 2723ad2e63
commit 685186f9fd

View File

@@ -2435,11 +2435,7 @@ PHP_FUNCTION(odbc_autocommit)
ZEND_FETCH_RESOURCE2(conn, odbc_connection *, pv_conn, -1, "ODBC-Link", le_conn, le_pconn);
#ifndef HAVE_DBMAKER
if ((*pv_onoff)) {
#else
if (pv_onoff && (*pv_onoff)) {
#endif
convert_to_long_ex(pv_onoff);
rc = SQLSetConnectOption(conn->hdbc, SQL_AUTOCOMMIT,
((*pv_onoff)->value.lval) ?