[php-src] master: Get rid of non-exposed solid_fetch_prev() function
| From: | Máté Kocsis | Date: | Sat, 06 Apr 2024 20:57:04 +0000 |
| Subject: | [php-src] master: Get rid of non-exposed solid_fetch_prev() function | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127956@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Date: 2024-04-06T22:56:23+02:00
Commit: https://github.com/php/php-src/commit/9a4847acf58e06e9bd0b0a41857828410ec19e57
Raw diff: https://github.com/php/php-src/commit/9a4847acf58e06e9bd0b0a41857828410ec19e57.diff
Get rid of non-exposed solid_fetch_prev() function
Somehow it wasn't exposed to userland.
Changed paths:
M ext/odbc/php_odbc.c
Diff:
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 1866a8f14d12..153c34612412 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -1564,40 +1564,6 @@ PHP_FUNCTION(odbc_fetch_into)
}
/* }}} */
-/* {{{ */
-#if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) || defined(HAVE_SOLID_35)
-PHP_FUNCTION(solid_fetch_prev)
-{
- odbc_result *result;
- RETCODE rc;
- zval *pv_res;
-
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &pv_res) == FAILURE) {
- RETURN_THROWS();
- }
-
- if ((result = (odbc_result *)zend_fetch_resource(Z_RES_P(pv_res), "ODBC result",
le_result)) == NULL) {
- RETURN_THROWS();
- }
- if (result->numcols == 0) {
- php_error_docref(NULL, E_WARNING, "No tuples available at this result index");
- RETURN_FALSE;
- }
- rc = SQLFetchPrev(result->stmt);
-
- if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
- RETURN_FALSE;
- }
-
- if (result->fetched > 1) {
- result->fetched--;
- }
-
- RETURN_TRUE;
-}
-#endif
-/* }}} */
-
/* {{{ Fetch a row */
PHP_FUNCTION(odbc_fetch_row)
{