Re: [PHP-DEV] Offical stance wrt. bug reports for unmaintained PECL exts

2015-04-03 Thread Ferenc Kovacs
On Fri, Apr 3, 2015 at 1:59 AM, Christoph Becker cmbecke...@gmx.de wrote: Hi everybody! It seems there are a lot of (old) bug reports for unmaintained PECL extensions. I wonder what the official stance is on that. For instance, there is #57551[1], which has been suspended by Joe Watkins

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] PHP 5.5.24RC1 is available for testing

2015-04-03 Thread Ferenc Kovacs
On Thu, Apr 2, 2015 at 8:00 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Thu, Apr 2, 2015 at 7:34 PM, Dan Ackroyd dan...@basereality.com wrote: Hi Julien, I am unsure of the timing windows for things being committed to being in a release, but it seems unfortunate to not have this

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] PHP 5.5.24RC1 is available for testing

2015-04-03 Thread Ferenc Kovacs
On Fri, Apr 3, 2015 at 9:30 AM, Ferenc Kovacs tyr...@gmail.com wrote: On Thu, Apr 2, 2015 at 8:00 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Thu, Apr 2, 2015 at 7:34 PM, Dan Ackroyd dan...@basereality.com wrote: Hi Julien, I am unsure of the timing windows for things being committed

Re: [PHP-DEV] What's our official stance on small self-contained additions in a micro version

2015-04-03 Thread Pierre Joye
On Apr 3, 2015 11:55 AM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! +1 This is exactly it. The longer older versions are supported the longer they remain in the wild. 5.3 is unsupported and still has over 40%. 5.2 is dead for 4 years by now and still beats 5.5 by factor of more

[PHP-DEV] [Do not set if using PDO_MySQL ], Does this still can not set for PHP 5.6.7 ?

2015-04-03 Thread Netroby
mysqlnd.fetch_data_copy long Enforce copying result sets from the internal result set buffers into PHP variables instead of using the default reference and copy-on-write logic. Please, see the memory management implementation notes for further details. Copying result sets instead of having PHP

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-03 Thread Dmitry Stogov
I don' t see any problems. Thanks. Dmitry. On Fri, Apr 3, 2015 at 6:31 PM, Nikita Popov nikita@gmail.com wrote: On Wed, Apr 1, 2015 at 3:31 AM, Dan Ackroyd dan...@basereality.com wrote: Hi Dmitry, Your approach is definitely a better one, and I have no objection to it whatsoever.

Re: [PHP-DEV] What's our official stance on small self-contained additions in a micro version

2015-04-03 Thread Rowan Collins
On 3 April 2015 05:55:27 GMT+01:00, Stanislav Malyshev smalys...@gmail.com wrote: Hi! +1 This is exactly it. The longer older versions are supported the longer they remain in the wild. 5.3 is unsupported and still has over 40%. 5.2 is dead for 4 years by now and still beats 5.5 by factor of

Re: [PHP-DEV] What's our official stance on small self-containedadditionsin a micro version

2015-04-03 Thread Rowan Collins
On 2 April 2015 01:36:40 GMT+01:00, Stanislav Malyshev smalys...@gmail.com wrote: Would that be considered to be bad style? If so, where is it documented? Yes. It is common sense. Not everything has to be spelled out to be true, and I think rule lawyering and ignoring common sense is not

[PHP-DEV] Concern around growing complexity in engine - hash table specifically

2015-04-03 Thread Anthony Ferrara
All, I spent a little bit of time today trying to debug an issue with 7 that Drupal 8 was facing, specifically regarding an array index not behaving correctly ($array[key] returned null, even though the key existed in the hash table). I noticed that the hash table implementation has gotten

Re: [PHP-DEV] Re: HTTP/2 and Websocket support in 7.x versions

2015-04-03 Thread Rowan Collins
On 31 March 2015 22:47:11 GMT+01:00, Andrey Hristov p...@hristov.com wrote: On 1.04.2015 00:31, Rowan Collins wrote: On 31 March 2015 21:23:56 GMT+01:00, Andrey Hristov p...@hristov.com wrote: So, if Zend can be optimized to quickly clean the execution environment, and easily switch between

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
On Fri, Apr 3, 2015 at 11:59 PM, Andrea Faulds a...@ajf.me wrote: Hi, On 3 Apr 2015, at 20:46, Dmitry Stogov dmi...@zend.com wrote: May be you'll also suggest something regarding bitwise shifts with negative offset? Allowing negative offsets using opposite directions would fix

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Andrea Faulds
On 3 Apr 2015, at 23:08, Dmitry Stogov dmi...@zend.com wrote: On Apr 4, 2015 12:34 AM, Nikita Popov nikita@gmail.com wrote: Don't think we need to disable compile-time evaluation for 2) and 3). It'll just end up being a compile error in that case. I think if you have 1 % 0

Re: [PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Levi Morrison
2) Very similar weird behavior was introduced for shift with negative offsets. I also propose to change it in the same way (Fatal error at compile-time, Exception in run-time). Can you describe the weird behavior for shifts with negative offsets? -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
On Fri, Apr 3, 2015 at 10:34 PM, Levi Morrison le...@php.net wrote: 2) Very similar weird behavior was introduced for shift with negative offsets. I also propose to change it in the same way (Fatal error at compile-time, Exception in run-time). Can you describe the weird behavior for

Re: [PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Andrea Faulds
Hi, On 3 Apr 2015, at 21:34, Dmitry Stogov dmi...@zend.com wrote: 3) One more problem is modulo :( $ sapi/cli/php -n -r var_dump(1 % 0); Warning: Division by zero in Command line code on line 1 bool(false) Hmm, modulo is a more difficult one. Since it’s an integer-only operation in

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Andrea Faulds
Hi Dmitry, On 3 Apr 2015, at 20:04, Dmitry Stogov dmi...@zend.com wrote: 2) Very similar weird behavior was introduced for shift with negative offsets. I also propose to change it in the same way (Fatal error at compile-time, Exception in run-time). Any thoughts? objections? For

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
On Fri, Apr 3, 2015 at 10:10 PM, Andrea Faulds a...@ajf.me wrote: Hi Dmitry, On 3 Apr 2015, at 20:04, Dmitry Stogov dmi...@zend.com wrote: 2) Very similar weird behavior was introduced for shift with negative offsets. I also propose to change it in the same way (Fatal error at

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Nikita Popov
On Fri, Apr 3, 2015 at 9:04 PM, Dmitry Stogov dmi...@zend.com wrote: 1) Division by zero behavior in PHP is really inconsistent. It emits WARNING and returns FALLE. Note, that since PHP-5.6 division by zero may also occur in constant expressions. They are compiled and evaluated only once (on

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Nikita Popov
On Fri, Apr 3, 2015 at 11:13 PM, Dmitry Stogov dmi...@zend.com wrote: On Fri, Apr 3, 2015 at 11:59 PM, Andrea Faulds a...@ajf.me wrote: Hi, On 3 Apr 2015, at 20:46, Dmitry Stogov dmi...@zend.com wrote: May be you'll also suggest something regarding bitwise shifts with negative

Re: [PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Levi Morrison
On Fri, Apr 3, 2015 at 1:31 PM, Levi Morrison le...@php.net wrote: On Fri, Apr 3, 2015 at 1:10 PM, Andrea Faulds a...@ajf.me wrote: Hi Dmitry, On 3 Apr 2015, at 20:04, Dmitry Stogov dmi...@zend.com wrote: 2) Very similar weird behavior was introduced for shift with negative offsets. I also

Re: [PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
3) One more problem is modulo :( $ sapi/cli/php -n -r var_dump(1 % 0); Warning: Division by zero in Command line code on line 1 bool(false) Thanks. Dmitry. On Fri, Apr 3, 2015 at 10:50 PM, Dmitry Stogov dmi...@zend.com wrote: On Fri, Apr 3, 2015 at 10:34 PM, Levi Morrison le...@php.net

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Andrea Faulds
Hi, On 3 Apr 2015, at 20:46, Dmitry Stogov dmi...@zend.com wrote: May be you'll also suggest something regarding bitwise shifts with negative offset? Allowing negative offsets using opposite directions would fix inconsistency, but I remember, you didn't like it. May be keep WARNING (Bit

Re: [PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
On Sat, Apr 4, 2015 at 12:04 AM, Andrea Faulds a...@ajf.me wrote: Hi, On 3 Apr 2015, at 21:34, Dmitry Stogov dmi...@zend.com wrote: 3) One more problem is modulo :( $ sapi/cli/php -n -r var_dump(1 % 0); Warning: Division by zero in Command line code on line 1 bool(false) Hmm,

[PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
On Apr 4, 2015 12:34 AM, Nikita Popov nikita@gmail.com wrote: On Fri, Apr 3, 2015 at 11:13 PM, Dmitry Stogov dmi...@zend.com wrote: On Fri, Apr 3, 2015 at 11:59 PM, Andrea Faulds a...@ajf.me wrote: Hi, On 3 Apr 2015, at 20:46, Dmitry Stogov dmi...@zend.com wrote: May be you'll

[PHP-DEV] Fix division by zero to throw exception

2015-04-03 Thread Dmitry Stogov
1) Division by zero behavior in PHP is really inconsistent. It emits WARNING and returns FALLE. Note, that since PHP-5.6 division by zero may also occur in constant expressions. They are compiled and evaluated only once (on first request) and on next request WARNING is going to be hidden. $ cat

Re: [PHP-DEV] Re: Fix division by zero to throw exception

2015-04-03 Thread Levi Morrison
On Fri, Apr 3, 2015 at 1:10 PM, Andrea Faulds a...@ajf.me wrote: Hi Dmitry, On 3 Apr 2015, at 20:04, Dmitry Stogov dmi...@zend.com wrote: 2) Very similar weird behavior was introduced for shift with negative offsets. I also propose to change it in the same way (Fatal error at

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-04-03 Thread Nikita Popov
On Wed, Apr 1, 2015 at 3:31 AM, Dan Ackroyd dan...@basereality.com wrote: Hi Dmitry, Your approach is definitely a better one, and I have no objection to it whatsoever. Sorry, I was too busy to look deeply at each class but I can't see any problems. Nikita Popov wrote: does that mean