Re: [PHP-DEV] Removing warning for failed include

2020-03-26 Thread Nikita Popov
On Thu, Mar 26, 2020 at 1:11 AM Levi Morrison via internals < internals@lists.php.net> wrote: > It's bothered me for quite some time that a failed include emits a > warning. This is because it's by design that the author chose > `include` and not `require`. It's _expected_ that it may fail and the

Re: [PHP-DEV] Removing warning for failed include

2020-03-26 Thread Claude Pache
> Le 26 mars 2020 à 03:08, Vasilii Shpilchin a > écrit : > > Hello everyone, > > PHP also can include from URL. In this case it makes sense to produce warning > and do not break execution. > I don’t think that it makes sense to include from URL, to begin with. IIRC, the allow_url_inclu

Re: [PHP-DEV] Removing warning for failed include

2020-03-25 Thread Claude Pache
> Le 26 mars 2020 à 01:11, Levi Morrison via internals > a écrit : > > It's bothered me for quite some time that a failed include emits a > warning. This is because it's by design that the author chose > `include` and not `require`. It's _expected_ that it may fail and they > are okay with th

[PHP-DEV] Removing warning for failed include

2020-03-25 Thread Levi Morrison via internals
It's bothered me for quite some time that a failed include emits a warning. This is because it's by design that the author chose `include` and not `require`. It's _expected_ that it may fail and they are okay with that. As an example, consider a classic autoloading case. It could be as simple and