rfc:object_cast_magic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:object_cast_magic [2012/02/29 02:37] – Remove References section ircmaxell | rfc:object_cast_magic [2012/03/04 01:02] – change title ircmaxell | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Request for Comments: | + | ===== Request for Comments: |
* Version: 0.1 | * Version: 0.1 | ||
* Date: 2012-02-28 | * Date: 2012-02-28 | ||
Line 9: | Line 9: | ||
Currently, the Zend Engine exposes several methods to PECL extensions and internal classes to control how internal objects behave when casting to primitives, and when assigning to the variable that used to hold the object. | Currently, the Zend Engine exposes several methods to PECL extensions and internal classes to control how internal objects behave when casting to primitives, and when assigning to the variable that used to hold the object. | ||
+ | It should be noted, that this requires no engine changes to implement. | ||
===== Use Cases ===== | ===== Use Cases ===== | ||
Line 91: | Line 92: | ||
if (is_numeric($value)) { | if (is_numeric($value)) { | ||
$this-> | $this-> | ||
+ | return; | ||
} | } | ||
return false; | return false; | ||
Line 113: | Line 115: | ||
* https:// | * https:// | ||
+ | ===== Questions ===== | ||
+ | How would this RFC affect: | ||
+ | |||
+ | resources | ||
+ | |||
+ | streams | ||
+ | |||
+ | filters | ||
+ | |||
+ | ... | ||
rfc/object_cast_magic.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1