rfc:debug-info
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:debug-info [2014/01/21 21:26] – created pollita | rfc:debug-info [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PHP RFC: __debug_info() ====== | + | ====== PHP RFC: __debugInfo() ====== |
- | * Version: 1.0 | + | * Version: 1.1 |
* Date: 2014-01-21 | * Date: 2014-01-21 | ||
* Author: Sara Golemon, pollita@php.net | * Author: Sara Golemon, pollita@php.net | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC is for exposing the " | + | This RFC is for exposing the " |
Example Usage: | Example Usage: | ||
Line 18: | Line 18: | ||
| | ||
// But all the stream meta data is | // But all the stream meta data is | ||
- | public function | + | public function |
return $this-> | return $this-> | ||
} | } | ||
Line 46: | Line 46: | ||
===== Impact to Existing Extensions ===== | ===== Impact to Existing Extensions ===== | ||
- | Existing fallback behavior for internal classes not overriding get_debug_info is preserved via chaining to get_properties when no __debug_info | + | Existing fallback behavior for internal classes not overriding get_debug_info is preserved via chaining to get_properties when no < |
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
5.next | 5.next | ||
+ | |||
+ | ===== Alternates under discussion ===== | ||
+ | |||
+ | * Rather than use < | ||
+ | |||
+ | IMO, this takes control away from the user and removes a particularly useful reason for having the < | ||
+ | |||
+ | ===== Potential expansions of scope ===== | ||
+ | |||
+ | * Add ReflectionObject:: | ||
+ | |||
+ | ===== Revision History ===== | ||
+ | |||
+ | * 1.1 (2014-01-22) - Changed name from < | ||
+ | * 1.0 (2014-01-21) - Initial Revision | ||
+ | |||
+ | ===== Vote 1 ===== | ||
+ | |||
+ | * Vote start: 2014/02/03 | ||
+ | * Vote end: 2014/02/17 | ||
+ | |||
+ | Vote [YES] to merge the < | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes (5.6) | ||
+ | * Yes (5.7) | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | ===== Vote 2 ===== | ||
+ | |||
+ | * Vote start: 2014/02/03 | ||
+ | * Vote end: 2014/02/17 | ||
+ | |||
+ | If Vote 1 passes, what should the userland magic method be called? | ||
+ | |||
+ | <doodle title=" | ||
+ | * __debugInfo() | ||
+ | * __debug() | ||
+ | </ | ||
===== Implementation ===== | ===== Implementation ===== |
rfc/debug-info.1390339570.txt.gz · Last modified: 2017/09/22 13:28 (external edit)