Re: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-26 Thread Larry Garfield
On 07/26/2015 01:36 PM, Jakub Kubíček wrote: Hi Larry! 2015-07-26 1:29 GMT+02:00 Larry Garfield la...@garfieldtech.com: Another point here is that 0 is a perfectly legitimate random number in many cases, so callers would need to do a === check, not just a boolean check. What boolean check are

Re: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-26 Thread Jakub Kubíček
Hi Larry! 2015-07-26 1:29 GMT+02:00 Larry Garfield la...@garfieldtech.com: Another point here is that 0 is a perfectly legitimate random number in many cases, so callers would need to do a === check, not just a boolean check. What boolean check are you talkin' about? I've never seen a code

RE: [PHP-DEV] PCRE JIT stack size limit

2015-07-26 Thread Anatol Belski
Hi Christoph, -Original Message- From: Christoph Becker [mailto:cmbecke...@gmx.de] Sent: Saturday, July 25, 2015 6:02 PM To: Anatol Belski anatol@belski.net; 'Pierre Joye' pierre@gmail.com Cc: 'PHP internals' internals@lists.php.net Subject: Re: [PHP-DEV] PCRE JIT stack

Re: [PHP-DEV] RFE to allow dirname($foo, 2)

2015-07-26 Thread Jakub Kubíček
Hi Scott! 2015-07-25 19:42 GMT+02:00 Scott Arciszewski sc...@paragonie.com: What's easier to read and less likely to result in bugs? require_once __DIR__ . '/../../../../autoload.php'; or require_once dirname(__FILE__, 5) . '/autoload.php'; That's on everyone's own, but for me it's the

RE: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-26 Thread Anatol Belski
Hi, -Original Message- From: Larry Garfield [mailto:la...@garfieldtech.com] Sent: Sunday, July 26, 2015 9:38 PM To: internals@lists.php.net Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 On 07/26/2015 01:36 PM, Jakub Kubíček wrote: Hi Larry! 2015-07-26

Re: [PHP-DEV] json_decode/encode should return full precision values by default

2015-07-26 Thread Yasuo Ohgaki
Hi Jakub, On Mon, Jul 27, 2015 at 3:32 AM, Jakub Zelenka bu...@php.net wrote: I don't think that this is a bug. Your example is also completely unrelated to json because the place when the value is rounded is var_dump where it's based on ini precision. You would get the same values with

Re: [PHP-DEV] Wiki Permissions and phpng-upgrading

2015-07-26 Thread Ferenc Kovacs
On Sat, Jul 25, 2015 at 1:59 AM, Benjamin Eberlei kont...@beberlei.de wrote: Hi everyone, i started porting an extension today and scimmed the phpng-upgrading file. It has some inaccuracies already with changes after the phpng-merge. However my access rights are not enough for user

Re: [PHP-DEV] PCRE JIT stack size limit

2015-07-26 Thread Christoph Becker
Hi Anatol, Anatol Belski wrote: Hi Christoph, -Original Message- From: Christoph Becker [mailto:cmbecke...@gmx.de] Sent: Saturday, July 25, 2015 6:02 PM To: Anatol Belski anatol@belski.net; 'Pierre Joye' pierre@gmail.com Cc: 'PHP internals' internals@lists.php.net

Re: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-26 Thread Aaron Piotrowski
I must have overlooked a detail here. According to https://github.com/tpunt/PHP7-Reference#throwable-interface there are Throwables called Error, as a separate designation from an exception. I didn't see this in the engine exceptions RFC, so I was unaware that was even a thing. In this

Re: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-26 Thread Scott Arciszewski
+1 for Error On Jul 26, 2015 11:32 PM, Aaron Piotrowski aa...@icicle.io wrote: I must have overlooked a detail here. According to https://github.com/tpunt/PHP7-Reference#throwable-interface there are Throwables called Error, as a separate designation from an exception. I didn't see

Re: [PHP-DEV] json_decode/encode should return full precision values by default

2015-07-26 Thread Jakub Zelenka
Hi, On Sat, Jul 25, 2015 at 11:01 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi all, I had to work with Google Map API and need to handle values precisely. Fortunately, it seems values are IEEE double, but I get rounded float values by default. For example, ?php $json = ' { results