Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast

[email protected] (Rowan Collins)
Newsgroups php.internals
Message-ID <[email protected]>
Stas Malyshev wrote (on 15/09/2014):
> Hi!
>
>> I agree that 100% is an unrealistic goal, but I don't think I've yet
>> seen someone actually point at a documented set of rules that even 80%
>> of current functions follow. I guess there is a default/normal usage of
> The rules are in zpp, and every function that uses zpp automatically
> follows them.
>

For those of us that aren't fluent in C, it would be great if someone 
could document those rules, or point at a readable piece of code which 
is specifically relevant to this discussion.

As I understand it, it's also not quite true to say that everything 
automatically follows them, since functions can a) react how they want 
to a "failure" of ZPP, and b) perform any extra checks and conversions 
they want in addition to ZPP. From an engine perspective, the rules of 
ZPP itself may seem like a single unit, but from a userland PoV, the 
function's overall behaviour that is a "black box".

Please correct me if I've misunderstood that.

Regards,
-- 
Rowan Collins
[IMSoP]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.