Re: [PHP-DEV] Moving a tmpfile()?

2023-05-06 Thread Dan Liebner
> Why move the temporary file when it is already a temporary file, right? If you don't want to have to write the file again with a copy? On Sat, May 6, 2023 at 1:56 PM Hans Krentel wrote: > > > > On Saturday 29 April 2023 09:32:42 (+02:00), Dan Liebner wrote: > > >

[PHP-DEV] Moving a tmpfile()?

2023-04-29 Thread Dan Liebner
Are there any inherent problems with moving a file created with tmpfile()? In practice, it seems that it can be done and the file will not be deleted after being moved and the file handle closed. Thanks, Dan

Re: [PHP-DEV] Future stability of PHP?

2023-04-10 Thread Dan Liebner
> > The change in null handling. We have a codebase that dates to 1998. It's > fairly well written. Upgrading to 8 was a major effort (4 devs, 2 QA) that > took almost a year due to the change in null handling. We have 40 XML and > JSON APIs with various banks. Elements may or may not exist. The

Re: [PHP-DEV] Future stability of PHP?

2023-04-08 Thread Dan Liebner
I agree with the OP's sentiment here. If I was starting a codebase from scratch today, I'd probably go with Node. I find that writing modern JavaScript is way easier than writing PHP these days, and the breaking changes in newer PHP versions make writing code harder rather than easier. PHP is the

Re: [PHP-DEV] PHP code refactoring (was: include cleanup)

2023-02-28 Thread Dan Liebner
Which commit? On Tue, Feb 28, 2023, 3:17 PM Dmitry Stogov wrote: > Hi @internals, > > I have to say that we came to a serious conflict. > > Recently we voted for inluce cleanup RFC > https://wiki.php.net/rfc/include_cleanup and it was declined. > Despite that a series of code refactoring

Re: [PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-13 Thread Dan Liebner
> Can you expand a bit on how you think distinguishing "undefined" from "null" would help? First off, I would be perfectly happy if undefined array/object index accesses went back to raising E_NOTICE. Undefined variables already resolve to NULL so in that sense NULL is already the "undefined"

Re: [PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-13 Thread Dan Liebner
's still way more concise than `$varExpression ?? null` that's baked into the language. On Tue, Dec 13, 2022 at 7:53 AM Dan Liebner wrote: > > No, code doesn't break. It now shows a warning instead of an error. > There is no behavioural change. > It breaks my app. Does that coun

Re: [PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-13 Thread Dan Liebner
on configuration settings. > just fix your code. Practically speaking, I'd much more likely stay on 7.4 or migrate to Node. On Mon, Dec 12, 2022 at 5:52 PM Derick Rethans wrote: > On 12 December 2022 22:20:27 GMT, Dan Liebner wrote: > > >It has been proposed to make the error le

[PHP-DEV] Revisiting RFC: Engine Warnings -- Undefined array index

2022-12-12 Thread Dan Liebner
First off, hello everyone, I'm Dan. I love PHP and I've been a PHP developer for over 20 years. The recent change to elevating "Undefined index" from E_NOTICE to E_WARNING set forth and passed by https://wiki.php.net/rfc/engine_warnings to me seems antithetical to what PHP has been and what has