Re: [RFC] Safe Casting Functions

From: Date: Wed, 22 Oct 2014 20:11:20 +0000
Subject: Re: [RFC] Safe Casting Functions
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-78246@lists.php.net to get a copy of this message
Hi! > Yes, that’s still merely an implementation detail. If HHVM decides to > make explode() into an opcode, it’s not a language change. It is not > any different if PHP does the same. If HHVM decides to introduce new type handling rules, however, it is. Even if they are going to be called using ( and ). >> You propose to add completely new type conversion rules into the >> engine, in addition to ones already present and used there. It's >> not the same as merely changing how the engine internally runs >> pre-existing code. The new rules are definitely becoming major part >> of the language, not an implementation detail of some random >> function like str_pad. > > No, they’re just a set of new validation functions. No, they are not. They are new engine primitives for handling type conversions. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

« previous php.internals (#78246) next »