[PHP-DEV] garbage in bugs.php.net

2023-02-12 Thread Stanislav Malyshev
Hi! Somebody have put a ton of garbage reports in bugs.php.net under security bugs. Cleaning them up manually is kind of annoying, could somebody with DB access go in and clean them all up? They all have either OS or Summary field set to "1" as far as I can see. Thanks, -- Stas Malyshev

Re: [PHP-DEV] [RFC] Saner array_(sum|product)()

2023-02-12 Thread G. P. B.
Hello internals, If there are no further feedback I intend on opening the vote for this tomorrow. Best regards, George P. Banyard

Re: [PHP-DEV] [VOTE] include cleanup

2023-02-12 Thread G. P. B.
On Thu, 9 Feb 2023 at 22:09, Matthew Weier O'Phinney < mweierophin...@gmail.com> wrote: > I'm not directly involved in maintenance, but my take on the scenario was > that these were rejected and reverted because they caused breakage, whether > that was in compiling a spare PHP build, or in

Re: [PHP-DEV] 'Uninitialized' creates a lot of cluttering

2023-02-12 Thread Rowan Tommins
On 12 February 2023 11:11:31 GMT, Lydia de Jongh wrote: >The features of a programming-language should not be about preventing >mistakes, imho. What is the point of marking the type of a property, other than to prevent mistakes? >For me it is about the cluttering in an otherwise clean

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Niels Dossche
On 12/02/2023 15:46, Thomas Hruska wrote: > On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote: >> Fwiw I would also find an $offset argument useful. fpassthru's lack of both >> $length and $offset made my life harder when implementing "HTTP 206 Partial >> Content" / "HTTP range requests", > > I was

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Hans Henrik Bergan
Good point, and come to think of it, people wishing to $offset can fseek() before before fpassthru() anyway. Nevermind the $offset thing, it's more trouble than it's worth ^^ On Sun, Feb 12, 2023, 15:46 Thomas Hruska wrote: > On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote: > > Fwiw I would also

Re: [PHP-DEV] [VOTE] include cleanup

2023-02-12 Thread Peter Kokot
On Sun, 12 Feb 2023 at 09:31, Max Kellermann wrote: > > On 2023/02/11 17:14, Peter Kokot wrote: > > I've voted in favor of the RFC because of the code-cleaning, > > tech-debt-reducing improvements to code readability. > > Exactly my point, and I'm surprised by the resistance. > > Not only

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Thomas Hruska
On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote: Fwiw I would also find an $offset argument useful. fpassthru's lack of both $length and $offset made my life harder when implementing "HTTP 206 Partial Content" / "HTTP range requests", I was going to suggest this myself until I realized that an

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Niels Dossche
On 12/02/2023 13:47, Hans Henrik Bergan wrote: > Fwiw I would also find an $offset argument useful. fpassthru's lack of both > $length and $offset made my life harder when implementing "HTTP 206 Partial > Content" / "HTTP range requests", > > Ended up with a > $output = fopen('php://output',

Re: [PHP-DEV] RFC karma request

2023-02-12 Thread Hans Henrik Bergan
Fwiw I would also find an $offset argument useful. fpassthru's lack of both $length and $offset made my life harder when implementing "HTTP 206 Partial Content" / "HTTP range requests", Ended up with a $output = fopen('php://output', 'wb'); + stream_copy_to_stream() hack because of fpassthru's

Re: [PHP-DEV] 'Uninitialized' creates a lot of cluttering

2023-02-12 Thread Tim Düsterhus
Hi On 2/12/23 12:11, Lydia de Jongh wrote: In case I make a mistake and accidentally don't assign a value to the property when I should've, perhaps I've forgot to call the necessary setter in my constructor. If I later access the property it will blow up instead of silently feeding me garbage

Re: [PHP-DEV] 'Uninitialized' creates a lot of cluttering

2023-02-12 Thread Lydia de Jongh
Hi, Thanks for all the answers so far. On 2/8/23 17:04, naitsi...@e.mail.de wrote: > > Would it make sense to make "null" the default value for nullable properties at least? > > So that one could write > > > > class Test { > > public ?string $name; > > } > > > > var_dump((new

Re: [PHP-DEV] [VOTE] include cleanup

2023-02-12 Thread Max Kellermann
On 2023/02/11 17:14, Peter Kokot wrote: > I've voted in favor of the RFC because of the code-cleaning, > tech-debt-reducing improvements to code readability. Exactly my point, and I'm surprised by the resistance. Not only surprised, but also disappointed that many have voted against code