@@ -1451,7 +1451,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1451
1451
ZVAL_NULL (& tmp );
1452
1452
break ;
1453
1453
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1454
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1454
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1455
1455
ZVAL_FALSE (& tmp );
1456
1456
} else {
1457
1457
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1463,7 +1463,7 @@ static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
1463
1463
ZVAL_NULL (& tmp );
1464
1464
break ;
1465
1465
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1466
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1466
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1467
1467
ZVAL_FALSE (& tmp );
1468
1468
break ;
1469
1469
}
@@ -1613,7 +1613,7 @@ PHP_FUNCTION(odbc_fetch_into)
1613
1613
ZVAL_NULL (& tmp );
1614
1614
break ;
1615
1615
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1616
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1616
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1617
1617
ZVAL_FALSE (& tmp );
1618
1618
} else {
1619
1619
ZVAL_STRINGL (& tmp , buf , result -> values [i ].vallen );
@@ -1625,7 +1625,7 @@ PHP_FUNCTION(odbc_fetch_into)
1625
1625
ZVAL_NULL (& tmp );
1626
1626
break ;
1627
1627
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
1628
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 , rc );
1628
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , i + 1 );
1629
1629
ZVAL_FALSE (& tmp );
1630
1630
break ;
1631
1631
}
@@ -1860,7 +1860,7 @@ PHP_FUNCTION(odbc_result)
1860
1860
RETURN_NULL ();
1861
1861
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1862
1862
zend_string_efree (field_str );
1863
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1863
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1864
1864
RETURN_FALSE ;
1865
1865
}
1866
1866
/* Reduce fieldlen by 1 if we have char data. One day we might
@@ -1886,7 +1886,7 @@ PHP_FUNCTION(odbc_result)
1886
1886
if (result -> values [field_ind ].vallen == SQL_NULL_DATA ) {
1887
1887
RETURN_NULL ();
1888
1888
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1889
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1889
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1890
1890
RETURN_FALSE ;
1891
1891
} else {
1892
1892
RETURN_STRINGL (result -> values [field_ind ].value , result -> values [field_ind ].vallen );
@@ -1920,7 +1920,7 @@ PHP_FUNCTION(odbc_result)
1920
1920
efree (field );
1921
1921
RETURN_NULL ();
1922
1922
} else if (result -> values [field_ind ].vallen == SQL_NO_TOTAL ) {
1923
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 , rc );
1923
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%d (driver cannot determine length)" , field_ind + 1 );
1924
1924
efree (field );
1925
1925
RETURN_FALSE ;
1926
1926
}
@@ -2032,7 +2032,7 @@ PHP_FUNCTION(odbc_result_all)
2032
2032
if (rc == SQL_SUCCESS_WITH_INFO ) {
2033
2033
if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2034
2034
php_printf ("</td></tr></table>" );
2035
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2035
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2036
2036
efree (buf );
2037
2037
RETURN_FALSE ;
2038
2038
} else {
@@ -2055,7 +2055,7 @@ PHP_FUNCTION(odbc_result_all)
2055
2055
if (result -> values [i ].vallen == SQL_NULL_DATA ) {
2056
2056
php_printf ("<td>NULL</td>" );
2057
2057
} else if (result -> values [i ].vallen == SQL_NO_TOTAL ) {
2058
- php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 , rc );
2058
+ php_error_docref (NULL , E_WARNING , "Cannot get data of column #%zu (driver cannot determine length)" , i + 1 );
2059
2059
php_printf ("<td>FALSE</td>" );
2060
2060
} else {
2061
2061
php_printf ("<td>%s</td>" , result -> values [i ].value );
0 commit comments