Re: Scalar type hinting
| From: | Ángel González | Date: | Mon, 27 Feb 2012 16:45:10 +0000 |
| Subject: | Re: Scalar type hinting | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58151@lists.php.net to get a copy of this message | ||
On 27/02/12 17:19, Richard Lynch wrote:
> PRESUMPTION:
>
> *ANY* strict datatype could also be NULL, to represent a failure
> condition...
>
> Otherwise, when you are out of RAM:
> strict $o = new Object(); //violates strict, because Object HAS to be
> NULL, as there is no RAM left for it to be an object.
Uh? No. You would get a fatal error because PHP exceeded maximum
allowed memory.