RE: [PHP-DEV] Coercive Scalar Type Hints RFC

From: Date: Sat, 21 Feb 2015 22:17:51 +0000
Subject: RE: [PHP-DEV] Coercive Scalar Type Hints RFC
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-83439@lists.php.net to get a copy of this message
Hi Pierre, I'm currently writing a patch to test the proposed ruleset, as BC is the key point. If BC breaks are so massive that we have to revert to the original 'weak' mode, I will be the first one to vote for dual-mode. There will be two slightly different branches : one totally disabling (IS_LONG|IS_FLOAT|IS_STRING to bool) and one implementing the current way of converting these (with the small modification about numeric strings recognized as false). There may be a first level without support for trailing blanks but it is not important as it is an extension of the current behavior, not a restriction. More when something is ready. Regards François

« previous php.internals (#83439) next »