On Thu, 30 Jan 2014, Hannes Magnusson wrote:
> On Wed, Jan 29, 2014 at 7:37 AM, Rasmus Lerdorf <[email protected]> wrote:
> > On 1/29/14, 7:00 AM, Anatol Belski wrote:
> >> please look here
> >>
> >> https://github.com/weltling/mongo-php-driver/compare/mongodb:master...master
> >>
> >> two hours of work and it's about 70% of the porting, compiling with
> >> 5.5 and str_size_and_int64. This is the hard caliber of course.
> >
> > And that is only 70%?
>
> I want to point out that this is 70% of the job to make it a 5.6
> extension.
Also, the first 80% takes up 20% of the time, and the last 20% takes up
80% of the time...
> Not compatible with 5.3, 5.4 and 5.5 - even though all that compat.h
> and stuff makes it look like it, its not. This is 5.6 compatibility
> (that change breaks build against 5.5, 5.4 and 5.3). Keeping
> compatibility with 5.5, 5.4, 5.3 is still eft as an exercise to the
> reader, as it does not compile against anything other then 5.6+size_t
> (and, even there.. is not finished).
:-/ I had not realized that. So this is not 70% then.
> I need people do also understand this little fact: This is how you
> will create an extension 2years from now. That compat.h header is as
> important as #include <php.h> Your extension is useless without it.
Seems like the word "compat" is a misnomer then.
> I strongly feel this "make extensions 5.6-only, with backwards
> compatibility layer, header file and other workarounds" is attacking
> the problem in catastrophic way and suggested a future compatible
> approach in the other thread.
+1.
> - The vote makes it look like its "now or never" (5.6 or nothing)
> This means people don't have to understand the implications.
> All they need to know is "64bit integers in PHP? Ok. That sounds
> logical, I'll vote +1". Of course people will vote for that.
> When you start thinking (given you have ever created an external
> PHP extension, which minority of our normal voters have) you'll
> realize how much more there is to this.
This is one of my main gripes with this whole voting process in the
first place. Too many people voting that have no clue about internals,
or have never have to maintain a complex extension.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine