new extension: strict

From: Date: Mon, 17 Nov 2014 07:58:33 +0000
Subject: new extension: strict
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-12410@lists.php.net to get a copy of this message
Morning chaps, I want to create a pecl package for https://github.com/krakjoe/strict PHP7 might get strict scalar type hints before release, or it might not. This extension introduces support for strict scalar parameter type hints from 5.4 up to 7, if support is introduced in 7, I shall remove it from the extension, thereby providing a good approximation of compatibility. There is an RFC in progress for casting functions which shall be imported into the extension for 5 series if the RFC passes for 7. If that RFC does not pass, I intend to introduce a strict_cast function. The only real limitation of the extension is that you cannot use default values in declarations, because the parser doesn't understand Class $name = 1, for example. Cheers Joe

« previous php.pecl.dev (#12410) next »