rfc:prototype_checks
This is an old revision of the document!
Request for Comments: How to write RFCs
- Version: 1.0
- Date: 2008-03-06
- Author: Etienne Kneuss colder@php.net
- Status: Under Discussion
- First Published at: http://wiki.php.net/rfc/prototype_checks
Introduction
Past discussions on the mailing lists have shed some light on the various ways we handle prototype checks and what may be done to improve PHP in that area. This RFC summarizes the current state (5.3/5.4) of prototype checks and possible improvements to it
Prototype checks
Prototype checks occur in three different contexts:
Implementing abstract method
The prototype is checked with current normal rules (see Current rules). Any mismatch with current rules generates a FATAL error.
Implementing interface method
The prototype is checked with current normal rules (see Current rules). Any mismatch with current rules generates a FATAL error.
Overriding existing method
The prototype is checked with current normal rules (see Current rules). Any mismatch with current rules generates a STRICT error.
rfc/prototype_checks.1316430612.txt.gz · Last modified: 2017/09/22 13:28 (external edit)