Review the usage of apostrophes in error messages

Closes GH-5590
This commit is contained in:
Máté Kocsis 2020-05-26 14:10:57 +02:00
parent 2ad75ba784
commit d30cd7d7e7
No known key found for this signature in database
GPG key ID: FD055E41728BF310
421 changed files with 907 additions and 897 deletions

View file

@ -1179,7 +1179,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
return;
}
if (UNEXPECTED(ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS))) {
zend_throw_error(NULL, "Class '%s' cannot be instantiated", ZSTR_VAL(ce->name));
zend_throw_error(NULL, "Class %s cannot be instantiated", ZSTR_VAL(ce->name));
RETURN_THROWS();
}
fetchtype = MYSQLI_ASSOC;