rfc:prototype_checks

This is an old revision of the document!


Request for Comments: How to write RFCs

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.1316430636.txt.gz · Last modified: 2017/09/22 13:28 (external edit)