Re: [PATCH] Delegate type hint/checks to alternative locations (Re: [PHP-DEV] back to 5.4 alpha)
| From: | Stas Malyshev | Date: | Wed, 08 Sep 2010 18:09:07 +0000 |
| Subject: | Re: [PATCH] Delegate type hint/checks to alternative locations (Re: [PHP-DEV] back to 5.4 alpha) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49587@lists.php.net to get a copy of this message | ||
Hi!
I would suggest to go forward with this decision partially (without callback and without zval** instead of zval*)Actually, if we have the information in the data structures, wouldn't it be pretty easy for xdebug (or any other extension), while intercepting function entrance (which everybody knows how to do by now) just go ahead and check the args without needing extra stuff done? I'm not sure from the top of my head about the modification, but since zend_parse_parameters manages to do it maybe it's possible? In any case, I guess leaving the syntax in could be a compromise, though I foresee people complaining about "consistency". -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227