Browse Source

CODING_STANDARDS.md: add rules for bool/zend_result return types (#10630)

This guideline was mentioned on php-internals
(https://news-web.php.net/php.internals/119573).
pull/10666/head
Max Kellermann 3 years ago
committed by GitHub
parent
commit
da777d493a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      CODING_STANDARDS.md

5
CODING_STANDARDS.md

@ -78,6 +78,11 @@ rewritten to comply with these rules.
may need to control or free the memory, or when the memory in question needs
to survive between multiple requests.
1. The return type of "is" or "has" style functions should be `bool`,
which return a "yes"/"no" answer. `zend_result` is an appropriate
return value for functions that perform some operation that may
succeed or fail.
## User functions/methods naming conventions
1. Function names for user-level functions should be enclosed with in the

Loading…
Cancel
Save