com php-src: Fixed error messages: ext/mysqli/mysqli.c
| From: | Dmitry Stogov | Date: | Wed, 11 Jun 2014 20:33:43 +0000 |
| Subject: | com php-src: Fixed error messages: ext/mysqli/mysqli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78844@lists.php.net to get a copy of this message | ||
Commit: bccd4184a59cce6b4d0e3aff7fb20ac1ead0f0be
Author: Dmitry Stogov <dmitry@zend.com> Thu, 12 Jun 2014 00:33:43 +0400
Parents: 9f6db414f8db4d766fa26198a74904a44961c7f2
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bccd4184a59cce6b4d0e3aff7fb20ac1ead0f0be
Log:
Fixed error messages
Changed paths:
M ext/mysqli/mysqli.c
Diff:
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 0d46831..b99fd76 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -1327,7 +1327,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int
override_flags
fcc.object = Z_OBJ_P(return_value);
if (zend_call_function(&fci, &fcc TSRMLS_CC) == FAILURE) {
- zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not
execute %s::%s()", ce->name, ce->constructor->common.function_name);
+ zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not
execute %s::%s()", ce->name->val, ce->constructor->common.function_name->val);
} else {
zval_ptr_dtor(&retval);
}
@@ -1335,7 +1335,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int
override_flags
efree(fci.params);
}
} else if (ctor_params) {
- zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Class %s does
not have a constructor hence you cannot use ctor_params", ce->name);
+ zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Class %s does
not have a constructor hence you cannot use ctor_params", ce->name->val);
}
}
}