[PHP-DEV] Mixed type-hint

2019-02-07 Thread Rasmus Schultz
Regarding the mixed type-hint RFC: https://wiki.php.net/rfc/mixed-typehint > When no native type is present, it is unclear what type is expected Regarding variance - in the examples shown in the RFC, it is still unclear whether your intention was variance, or if you just omitted the type-hint by

Re: [PHP-DEV] New website for the PHP project

2019-02-07 Thread Michael Wallner
Am Do., 7. Feb. 2019, 10:27 hat BohwaZ/PHP geschrieben: > Le 04/02/2019 01:14, azjezz a écrit : > > In my opinion, current design looks old, outdated and bland. This > > sadly may reflect "badly" on the language reputation nowadays. > > I find that the main PHP website is quite good actually, the

Re: [PHP-DEV] Voting & Workflow RFC - update

2019-02-07 Thread Pierre Joye
Hi Zeev, On Thu, Feb 7, 2019, 4:55 PM Zeev Suraski All, > > I've read the detailed and very informative feedback from both Pierre and > Dan, as well as feedback from others (Nikita & more) over the last few > days, and I'm now convinced that breaking the Voting part away from the > Workflow part

Re: [PHP-DEV] Make bcmath functions more strict

2019-02-07 Thread Ben Ramsey
> On Feb 7, 2019, at 11:47, Vladyslav Startsev > wrote: > > Hello everyone! > > Recently I noticed that there are strange behavior going on if I use > bcmath functions (some examples you can see here > https://3v4l.org/D3s7J). I also previously had little discussion with > Sara Golemon on twitt

Re: [PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-07 Thread Peter Kokot
On Thu, 7 Feb 2019 at 18:01, Peter Kokot wrote: > > Hello, > > On Thu, 7 Feb 2019, 16:52 Christoph M. Becker > >> On 07.02.2019 at 16:14, Sjon Hortensius wrote: >> >> > On Wed, Feb 6, 2019 at 4:14 PM Ben Ramsey wrote: >> > >> >>> On Feb 6, 2019, at 01:22, Peter Kokot wrote: >> >>> I can help sor

[PHP-DEV] Make bcmath functions more strict

2019-02-07 Thread Vladyslav Startsev
Hello everyone! Recently I noticed that there are strange behavior going on if I use bcmath functions (some examples you can see here https://3v4l.org/D3s7J). I also previously had little discussion with Sara Golemon on twitter about this (https://twitter.com/SaraMG/status/1087902930110480384). So

Re: [PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-07 Thread Peter Kokot
Hello, On Thu, 7 Feb 2019, 16:52 Christoph M. Becker On 07.02.2019 at 16:14, Sjon Hortensius wrote: > > > On Wed, Feb 6, 2019 at 4:14 PM Ben Ramsey wrote: > > > >>> On Feb 6, 2019, at 01:22, Peter Kokot wrote: > >>> I can help sort this mess. A separate fork out of the php/php-src was > >>> not

Re: [PHP-DEV] New website for the PHP project

2019-02-07 Thread azjezz
Hello Bohwaz, i think you should take a look at the mock ups[1]. I don't plan on using an JS Framework, the frameworks i suggested are lightweight CSS Frameworks. I'm also planning on keeping the shortcut redirects and maybe even improve them. [1]: https://github.com/azjezz/web-php-mock-ups

Re: [PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-07 Thread Christoph M. Becker
On 07.02.2019 at 16:14, Sjon Hortensius wrote: > On Wed, Feb 6, 2019 at 4:14 PM Ben Ramsey wrote: > >>> On Feb 6, 2019, at 01:22, Peter Kokot wrote: >>> I can help sort this mess. A separate fork out of the php/php-src was >>> not such a good idea. >> >> Sorry. I made many poor decisions around

Re: [PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-07 Thread Sjon Hortensius
On Wed, Feb 6, 2019 at 4:14 PM Ben Ramsey wrote: > > On Feb 6, 2019, at 01:22, Peter Kokot wrote: > > I can help sort this mess. A separate fork out of the php/php-src was > > not such a good idea. > > Sorry. I made many poor decisions around how I managed that entire event. > It’s my own person

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Christian Schneider
Am 07.02.2019 um 14:28 schrieb Rowan Collins : > On 7 February 2019 11:19:46 GMT+00:00, Benjamin Morel > wrote: >> Also, some applications might assume that the directory does not already >> exist, and want to fail if it does. So both use cases must be available in >> the API. mkdir("foo") or f

Re: [PHP-DEV] RFC Abolish Narrow Margins

2019-02-07 Thread Rowan Collins
On 7 February 2019 08:38:54 GMT+00:00, Zeev Suraski wrote: >> It's the only definition we currently have. > >That's not exactly true. We have the definition that was actually >agreed >upon in the original Voting RFC, and while it's hardly great - it's >clearly >different from the voting base we c

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Rowan Collins
On 7 February 2019 11:19:46 GMT+00:00, Benjamin Morel wrote: >Also, some applications might assume that the directory does not >already >exist, and want to fail if it does. So both use cases must be available >in >the API. I absolutely agree, but I also agree that the task here is not "convert

[PHP-DEV] PHP 7.2.15 Released

2019-02-07 Thread Remi Collet
Hi, The PHP development team announces the immediate availability of PHP 7.2.15. This is a bugfix release. All PHP 7.2 users are encouraged to upgrade to this version. For source downloads of PHP 7.2.15 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. T

Re: [PHP-DEV] configure bug with static openssl 1.1.1? - bugid 77288

2019-02-07 Thread Helmut K. C. Tessarek
Hello, On 2018-12-13 17:52, Rainer Jung wrote: > I might be wrong, but I vaguely remember that PHp does not call > "pkg-config --static --libs openssl" with a correctly setup > PKG_CONFIG_PAATZ to get the libs needed for static compilation. > Typically OpenSSL installs correct pc files that contai

Re: [PHP-DEV] RFC Abolish Narrow Margins

2019-02-07 Thread Zeev Suraski
On Thu, Feb 7, 2019 at 10:42 AM Pierre Joye wrote: > On Thu, Feb 7, 2019 at 3:39 PM Zeev Suraski wrote: > > > It has to do with the relative power > > of the code contributors, vs. folks who aren't code contributors who > > presently have a vote even though they're not supposed to have one base

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-02-07 Thread Rowan Collins
On Thu, 7 Feb 2019 at 11:08, Benjamin Morel wrote: > Plus, as I stated earlier, I'm confident that typed properties will give > much more credit to this approach, as we'll get an immediate Error should > we accidentally access an uninitialized property, as opposed to a null > value previously. >

[PHP-DEV] PHP 7.3.2 Released

2019-02-07 Thread Christoph M. Becker
The PHP development team announces the immediate availability of PHP 7.3.2. This is a bugfix release with several bug fixes included. All PHP 7.3 users are encouraged to upgrade to this version. For source downloads of PHP 7.3.2 please visit our downloads page. Windows binaries can be found on th

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Benjamin Morel
> > Please don't do that either, I don't want to convert > @mkdir("foo"); > to > try { mkdir("foo"); } catch (Exception $e) {} > just to stop my script from exiting if the directory already exists. What you really want is either another function that does not throw an exception in

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-02-07 Thread Marco Pivetta
Hey Ben, FWIW, I also worked on a similar feature via transparent proxying (never finished though): it is an edge case that can be handled in userland, and it doesn't need to be performance sensitive ("edge case"), since the trade-off is more CPU vs less I/O and memory usage (skip loading of LOB f

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-02-07 Thread Benjamin Morel
> > So this entire feature request is to support something which the Doctrine > manual spends several paragraphs saying you should probably never use? If Doctrine authors thought that you should *never *use it, they would never have added the feature in the first place. They just place a big cave

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-02-07 Thread Rowan Collins
On Thu, 7 Feb 2019 at 09:35, Benjamin Morel wrote: > apologies if I've missed it, but have you actually said what that use case >> is? > > > Sorry if it wasn't clear in my original post. The use case is the > following: > > - a data mapper retrieves an object from the database > - for optimizatio

[PHP-DEV] Voting & Workflow RFC - update

2019-02-07 Thread Zeev Suraski
All, I've read the detailed and very informative feedback from both Pierre and Dan, as well as feedback from others (Nikita & more) over the last few days, and I'm now convinced that breaking the Voting part away from the Workflow part is the right way forward. Not because ideally they shouldn't

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-02-07 Thread Benjamin Morel
> > apologies if I've missed it, but have you actually said what that use case > is? Sorry if it wasn't clear in my original post. The use case is the following: - a data mapper retrieves an object from the database - for optimization purposes, we can ask the data mapper to return a partial obje

Re: [PHP-DEV] New website for the PHP project

2019-02-07 Thread BohwaZ/PHP
Le 04/02/2019 01:14, azjezz a écrit : In my opinion, current design looks old, outdated and bland. This sadly may reflect "badly" on the language reputation nowadays. I find that the main PHP website is quite good actually, the design looks modern, it is quite clear and easy to use and it prov

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Christian Schneider
Am 07.02.2019 um 10:01 schrieb Benjamin Morel : > IMO, @ can be safely removed the day PHP converts current warnings to > exceptions. Please don't do that either, I don't want to convert @mkdir("foo"); to try { mkdir("foo"); } catch (Exception $e) {} just to stop my script from ex

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Benjamin Morel
> > That is one the cases I meant. Also this is a bug in the user code. I can > imagine doing it on purpose for performance reasons (if the file is > created/deleted by other apps) tho'. > flock is what should be used here. flock doesn't protect from other failures, such as a fread()ing a file l

Re: [PHP-DEV] RFC Abolish Narrow Margins

2019-02-07 Thread Pierre Joye
On Thu, Feb 7, 2019 at 3:39 PM Zeev Suraski wrote: > It has to do with the relative power > of the code contributors, vs. folks who aren't code contributors who > presently have a vote even though they're not supposed to have one based on > the rules agreed upon back in the day. This is not cor

Re: [PHP-DEV] RFC Abolish Narrow Margins

2019-02-07 Thread Zeev Suraski
On Wed, Feb 6, 2019 at 9:06 PM Niklas Keller wrote: > > I'll reiterate my main two issues with this RFC: > > - I do think that we need 50%+1 votes for certain decisions. Naming the > > next version of PHP, or even deciding to release it outside of the yearly > > cycle should not require a 2/3 vo

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Pierre Joye
On Thu, Feb 7, 2019 at 3:14 PM Christian Schneider wrote: > > Am 07.02.2019 um 02:32 schrieb Pierre Joye : > > On Thu, Feb 7, 2019, 8:07 AM Girgias >> The most common case which comes to mind is to suppress erros while file > >> reading. > >> Because even if you check a file exists it could be d

Re: [PHP-DEV] Don't silence fatal errors

2019-02-07 Thread Christian Schneider
Am 07.02.2019 um 02:32 schrieb Pierre Joye : > On Thu, Feb 7, 2019, 8:07 AM Girgias > The most common case which comes to mind is to suppress erros while file >> reading. >> Because even if you check a file exists it could be deleted inbetween the >> check and the >> read command. As you can see