mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make error messages more consistent by fixing capitalization
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
This commit is contained in:
parent
117b18d22d
commit
d1764ca330
432 changed files with 1525 additions and 1525 deletions
|
@ -541,7 +541,7 @@ static PHP_METHOD(SQLite, sqliteCreateFunction)
|
|||
|
||||
if (!zend_is_callable(callback, 0, NULL)) {
|
||||
zend_string *cbname = zend_get_callable_name(callback);
|
||||
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
php_error_docref(NULL, E_WARNING, "Function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
zend_string_release_ex(cbname, 0);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
@ -613,14 +613,14 @@ static PHP_METHOD(SQLite, sqliteCreateAggregate)
|
|||
|
||||
if (!zend_is_callable(step_callback, 0, NULL)) {
|
||||
zend_string *cbname = zend_get_callable_name(step_callback);
|
||||
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
php_error_docref(NULL, E_WARNING, "Function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
zend_string_release_ex(cbname, 0);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (!zend_is_callable(fini_callback, 0, NULL)) {
|
||||
zend_string *cbname = zend_get_callable_name(fini_callback);
|
||||
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
php_error_docref(NULL, E_WARNING, "Function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
zend_string_release_ex(cbname, 0);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
@ -673,7 +673,7 @@ static PHP_METHOD(SQLite, sqliteCreateCollation)
|
|||
|
||||
if (!zend_is_callable(callback, 0, NULL)) {
|
||||
zend_string *cbname = zend_get_callable_name(callback);
|
||||
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
php_error_docref(NULL, E_WARNING, "Function '%s' is not callable", ZSTR_VAL(cbname));
|
||||
zend_string_release_ex(cbname, 0);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@ $pdo->sqliteCreateAggregate('foo', 'strlen', '');
|
|||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
|
||||
Warning: PDO::sqliteCreateAggregate(): Function 'a' is not callable in %s on line %d
|
||||
|
||||
Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
|
||||
Warning: PDO::sqliteCreateAggregate(): Function '' is not callable in %s on line %d
|
||||
|
|
|
@ -14,4 +14,4 @@ $db->sqliteCreateFunction('bar-alias', 'bar');
|
|||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d
|
||||
Warning: PDO::sqliteCreateFunction(): Function 'bar' is not callable in %s on line %d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue