RE: [PHP-DEV] strict-api - Proposing a tool to check and enforce encapsulation

From: Date: Sat, 12 Sep 2015 15:57:37 +0000
Subject: RE: [PHP-DEV] strict-api - Proposing a tool to check and enforce encapsulation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-88166@lists.php.net to get a copy of this message
Hi Francois, > -----Original Message----- > From: François Laupretre [mailto:francois@php.net] > Sent: Tuesday, September 8, 2015 12:41 AM > To: PHP internals <internals@lists.php.net> > Cc: Ferenc Kovacs <tyra3l@gmail.com>; Anthony Ferrara > <ircmaxell@gmail.com> > Subject: [PHP-DEV] strict-api - Proposing a tool to check and enforce > encapsulation > > Hi, > > I have written a follow-up to my previous 'zstrict' PR. It is now focused on a > simple mechanism to detect API violations : > > https://github.com/php/php-src/pull/1508 > > This version just implements the mechanism and applies it to the zend_string > val/len/h elements. More details in the PR. > > Please comment first. Then, when we're OK on the feature, we may talk about > the target version. > Personally I'd be voting yes on the principle. However as the topic brought controversial opinions in the past, IMHO it is better to solve it through an RFC. Especially when the idea expands over zend_string API later, evermore devs and code will be forced by the rules, so it is essential to ensure the majority wants it in first place. And, I wouldn't hurry it into 7.0. Regards Anatol

« previous php.internals (#88166) next »