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/02/29 02:51] – [Introduction] - expand to show limit of scope of changes ircmaxell | ||
---|---|---|---|
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; |
rfc/object_cast_magic.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1