[php-src] master: Fix casing of the ODBC namespace in error messages
| From: | Máté Kocsis | Date: | Tue, 30 Apr 2024 20:17:36 +0000 |
| Subject: | [php-src] master: Fix casing of the ODBC namespace in error messages | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128272@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Date: 2024-04-30T22:14:22+02:00
Commit: https://github.com/php/php-src/commit/2fd30a20008d350ab849842459280118404c1fb5
Raw diff: https://github.com/php/php-src/commit/2fd30a20008d350ab849842459280118404c1fb5.diff
Fix casing of the ODBC namespace in error messages
Changed paths:
M ext/odbc/php_odbc.c
Diff:
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 7d6fea296692..1c2f32138ebc 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -182,7 +182,7 @@ static zend_object *odbc_connection_create_object(zend_class_entry *class_type)
static zend_function *odbc_connection_get_constructor(zend_object *object)
{
- zend_throw_error(NULL, "Cannot directly construct ODBC\\Connection, use odbc_connect() or
odbc_pconnect() instead");
+ zend_throw_error(NULL, "Cannot directly construct Odbc\\Connection, use odbc_connect() or
odbc_pconnect() instead");
return NULL;
}
@@ -214,7 +214,7 @@ static zend_object *odbc_result_create_object(zend_class_entry *class_type)
static zend_function *odbc_result_get_constructor(zend_object *object)
{
- zend_throw_error(NULL, "Cannot directly construct ODBC\\Result, use an appropriate odbc_*
function instead");
+ zend_throw_error(NULL, "Cannot directly construct Odbc\\Result, use an appropriate odbc_*
function instead");
return NULL;
}
@@ -2760,7 +2760,7 @@ PHP_FUNCTION(odbc_setoption)
switch (pv_which) {
case 1: /* SQLSetConnectOption */
if (!instanceof_function(Z_OBJCE_P(pv_handle), odbc_connection_ce)) {
- zend_argument_type_error(1, "must be of type ODBC\\Connection for
SQLSetConnectOption()");
+ zend_argument_type_error(1, "must be of type Odbc\\Connection for
SQLSetConnectOption()");
RETURN_THROWS();
}
link = Z_ODBC_LINK_P(pv_handle);
@@ -2778,7 +2778,7 @@ PHP_FUNCTION(odbc_setoption)
break;
case 2: /* SQLSetStmtOption */
if (!instanceof_function(Z_OBJCE_P(pv_handle), odbc_result_ce)) {
- zend_argument_type_error(1, "must be of type ODBC\\Result for SQLSetStmtOption()");
+ zend_argument_type_error(1, "must be of type Odbc\\Result for SQLSetStmtOption()");
RETURN_THROWS();
}
result = Z_ODBC_RESULT_P(pv_handle);