Skip to content

Commit 2fd30a2

Browse files
committed
Fix casing of the ODBC namespace in error messages
1 parent d5cc7e9 commit 2fd30a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/odbc/php_odbc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static zend_object *odbc_connection_create_object(zend_class_entry *class_type)
182182

183183
static zend_function *odbc_connection_get_constructor(zend_object *object)
184184
{
185-
zend_throw_error(NULL, "Cannot directly construct ODBC\\Connection, use odbc_connect() or odbc_pconnect() instead");
185+
zend_throw_error(NULL, "Cannot directly construct Odbc\\Connection, use odbc_connect() or odbc_pconnect() instead");
186186
return NULL;
187187
}
188188

@@ -214,7 +214,7 @@ static zend_object *odbc_result_create_object(zend_class_entry *class_type)
214214

215215
static zend_function *odbc_result_get_constructor(zend_object *object)
216216
{
217-
zend_throw_error(NULL, "Cannot directly construct ODBC\\Result, use an appropriate odbc_* function instead");
217+
zend_throw_error(NULL, "Cannot directly construct Odbc\\Result, use an appropriate odbc_* function instead");
218218
return NULL;
219219
}
220220

@@ -2760,7 +2760,7 @@ PHP_FUNCTION(odbc_setoption)
27602760
switch (pv_which) {
27612761
case 1: /* SQLSetConnectOption */
27622762
if (!instanceof_function(Z_OBJCE_P(pv_handle), odbc_connection_ce)) {
2763-
zend_argument_type_error(1, "must be of type ODBC\\Connection for SQLSetConnectOption()");
2763+
zend_argument_type_error(1, "must be of type Odbc\\Connection for SQLSetConnectOption()");
27642764
RETURN_THROWS();
27652765
}
27662766
link = Z_ODBC_LINK_P(pv_handle);
@@ -2778,7 +2778,7 @@ PHP_FUNCTION(odbc_setoption)
27782778
break;
27792779
case 2: /* SQLSetStmtOption */
27802780
if (!instanceof_function(Z_OBJCE_P(pv_handle), odbc_result_ce)) {
2781-
zend_argument_type_error(1, "must be of type ODBC\\Result for SQLSetStmtOption()");
2781+
zend_argument_type_error(1, "must be of type Odbc\\Result for SQLSetStmtOption()");
27822782
RETURN_THROWS();
27832783
}
27842784
result = Z_ODBC_RESULT_P(pv_handle);

0 commit comments

Comments
 (0)