Hi!

> "Been in PHP for a very long time" != "how it was intended to work". Can
> you explain why this would be the intention of anyone designing the
> language?

Of course, been for a long time is not the same as intended. But if you
look at how ZEND_NEW is done, it's clear it's intended. And the reason
is simple - if there's no function, it's not really possible to initiate
a function call and handle it properly, since the engine expects certain
data there and there's nothing to provide that data. So, ZEND_NEW having
no function just skips the whole function call thing altogether.

> It's a mistake that was made a long time ago, and nobody's thought it
> worth the effort to fix, but it's still a mistake, IMHO.

It's not a mistake - at least, not an unintentional one, it was a
decision. If you think the decision was wrong and it can be done better
- cool, let's see the patch.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to