I've been having a play around with the implementation, and it's been
behaving pretty solidly, nothing unexpected so far.

I've even gotten around my issue regarding no strict-by-default option
for those of us who want it.

Maybe this will sway a few voters. I'll put the source up if this
particular implementation gets through (no point otherwise!)


~/php-strict $ ../php-src/sapi/cli/php -r 'function foo(int $bar) {
var_dump($bar); } foo("10");'
int(10)

~/php-strict $ ../php-src/sapi/cli/php -d extension=modules/strict.so
-r 'function foo(int $bar) { var_dump($bar); } foo("10");'

Catchable fatal error: Argument 1 passed to foo() must be of the type
integer, string given, called in Command line code on line 1 and
defined in Command line code on line 1

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

Reply via email to