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:
Máté Kocsis 2020-01-15 11:27:29 +01:00
parent 117b18d22d
commit d1764ca330
No known key found for this signature in database
GPG key ID: FD055E41728BF310
432 changed files with 1525 additions and 1525 deletions

View file

@ -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;
}

View file

@ -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

View file

@ -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