@@ -1815,7 +1815,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1815
1815
ZVAL_NULL (& tmp );
1816
1816
break ;
1817
1817
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1818
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1818
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1819
1819
ZVAL_FALSE (& tmp );
1820
1820
} else {
1821
1821
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1827,7 +1827,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1827
1827
ZVAL_NULL (& tmp );
1828
1828
break ;
1829
1829
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1830
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1830
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1831
1831
ZVAL_FALSE (& tmp );
1832
1832
break ;
1833
1833
}
@@ -1978,7 +1978,7 @@ PHP_FUNCTION(odbc_fetch_into)
1978
1978
ZVAL_NULL (& tmp );
1979
1979
break ;
1980
1980
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1981
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1981
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1982
1982
ZVAL_FALSE (& tmp );
1983
1983
} else {
1984
1984
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1990,7 +1990,7 @@ PHP_FUNCTION(odbc_fetch_into)
1990
1990
ZVAL_NULL (& tmp );
1991
1991
break ;
1992
1992
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1993
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1993
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1994
1994
ZVAL_FALSE (& tmp );
1995
1995
break ;
1996
1996
}
@@ -2227,7 +2227,7 @@ PHP_FUNCTION(odbc_result)
2227
2227
RETURN_NULL ();
2228
2228
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
2229
2229
zend_string_efree (field_str );
2230
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
2230
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
2231
2231
RETURN_FALSE ;
2232
2232
}
2233
2233
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -2253,7 +2253,7 @@ PHP_FUNCTION(odbc_result)
2253
2253
if (result -> values [field_ind ].vallen == SQL_NULL_DATA ) {
2254
2254
RETURN_NULL ();
2255
2255
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
2256
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
2256
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
2257
2257
RETURN_FALSE ;
2258
2258
} else {
2259
2259
RETURN_STRINGL (result -> values [field_ind ].value , result -> values [field_ind ].vallen );
@@ -2287,7 +2287,7 @@ PHP_FUNCTION(odbc_result)
2287
2287
efree (field );
2288
2288
RETURN_NULL ();
2289
2289
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
2290
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
2290
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
2291
2291
efree (field );
2292
2292
RETURN_FALSE ;
2293
2293
}
@@ -2397,7 +2397,7 @@ PHP_FUNCTION(odbc_result_all)
2397
2397
if (rc == SQL_SUCCESS_WITH_INFO ) {
2398
2398
if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2399
2399
php_printf ("</td></tr></table>" );
2400
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2400
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2401
2401
efree (buf );
2402
2402
RETURN_FALSE ;
2403
2403
} else {
@@ -2420,7 +2420,7 @@ PHP_FUNCTION(odbc_result_all)
2420
2420
if (result -> values [i ].vallen == SQL_NULL_DATA ) {
2421
2421
php_printf ("<td>NULL</td>" );
2422
2422
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2423
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2423
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2424
2424
php_printf ("<td>FALSE</td>" );
2425
2425
} else {
2426
2426
php_printf ("<td>%s</td>" , result -> values [i ].value );
0 commit comments