From: Dmitry Stogov Date: Wed, 11 Jun 2014 20:33:43 +0000 (+0400) Subject: Fixed error messages X-Git-Tag: POST_PHPNG_MERGE~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bccd4184a59cce6b4d0e3aff7fb20ac1ead0f0be;p=php Fixed error messages --- diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 0d4683102a..b99fd767c4 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); } } }