@@ -1448,7 +1448,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1448
1448
ZVAL_NULL (& tmp );
1449
1449
break ;
1450
1450
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1451
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1451
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1452
1452
ZVAL_FALSE (& tmp );
1453
1453
} else {
1454
1454
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1460,7 +1460,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1460
1460
ZVAL_NULL (& tmp );
1461
1461
break ;
1462
1462
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1463
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1463
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1464
1464
ZVAL_FALSE (& tmp );
1465
1465
break ;
1466
1466
}
@@ -1608,7 +1608,7 @@ PHP_FUNCTION(odbc_fetch_into)
1608
1608
ZVAL_NULL (& tmp );
1609
1609
break ;
1610
1610
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1611
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1611
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1612
1612
ZVAL_FALSE (& tmp );
1613
1613
} else {
1614
1614
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1620,7 +1620,7 @@ PHP_FUNCTION(odbc_fetch_into)
1620
1620
ZVAL_NULL (& tmp );
1621
1621
break ;
1622
1622
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1623
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1623
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1624
1624
ZVAL_FALSE (& tmp );
1625
1625
break ;
1626
1626
}
@@ -1852,7 +1852,7 @@ PHP_FUNCTION(odbc_result)
1852
1852
RETURN_NULL ();
1853
1853
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1854
1854
zend_string_efree (field_str );
1855
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1855
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1856
1856
RETURN_FALSE ;
1857
1857
}
1858
1858
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -1878,7 +1878,7 @@ PHP_FUNCTION(odbc_result)
1878
1878
if (result -> values [field_ind ].vallen == SQL_NULL_DATA ) {
1879
1879
RETURN_NULL ();
1880
1880
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1881
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1881
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1882
1882
RETURN_FALSE ;
1883
1883
} else {
1884
1884
RETURN_STRINGL (result -> values [field_ind ].value , result -> values [field_ind ].vallen );
@@ -1912,7 +1912,7 @@ PHP_FUNCTION(odbc_result)
1912
1912
efree (field );
1913
1913
RETURN_NULL ();
1914
1914
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1915
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1915
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1916
1916
efree (field );
1917
1917
RETURN_FALSE ;
1918
1918
}
@@ -2021,7 +2021,7 @@ PHP_FUNCTION(odbc_result_all)
2021
2021
if (rc == SQL_SUCCESS_WITH_INFO ) {
2022
2022
if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2023
2023
php_printf ("</td></tr></table>" );
2024
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2024
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2025
2025
efree (buf );
2026
2026
RETURN_FALSE ;
2027
2027
} else {
@@ -2044,7 +2044,7 @@ PHP_FUNCTION(odbc_result_all)
2044
2044
if (result -> values [i ].vallen == SQL_NULL_DATA ) {
2045
2045
php_printf ("<td>NULL</td>" );
2046
2046
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2047
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2047
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2048
2048
php_printf ("<td>FALSE</td>" );
2049
2049
} else {
2050
2050
php_printf ("<td>%s</td>" , result -> values [i ].value );
0 commit comments