On Tue, Oct 8, 2019, 3:30 PM Chase Peeler <chasepee...@gmail.com> wrote:

> On Sun, Oct 6, 2019 at 9:18 AM Reinis Rozitis <r...@roze.lv> wrote:
>
> > > -----Original Message-----
> > > From: Olumide Samson [mailto:oludons...@gmail.com]
> > >
> > > it should be deprecated  for exec usage since they both do same thing
> >
> > With that logic <?= should also be deprecated in favor of echo because it
> > does the same thing and is hard to find in internet search engines (was
> in
> > some other argument).
> >
> >
> And we should deprecate the "print" command, since it's the same as echo.
> We should deprecate 'printf', since you can just do 'echo sprintf' and, now
> that I think about it, we should deprecate sprintf as well, since you can
> just use vsprintf. It's a simple change too... sprintf($s,$a,$b,$c) =>
> vsprintf($s,[$a,$b,$c]);. I'm just it can be done with just a simple regex
> search/replace.
>
> The fact that are SO many different ways to output text is REALLY confusing
> for new developers. I think it's imperative we fix all of these items RIGHT
> NOW. By doing so, I'm sure all the .NET developers that are talking smack
> about PHP will suddenly denounce c# and start using PHP as well!
>
>
> >
> > > This isn't high cost breaking changes coz it has a verifiable, ready
> > alternative to upgrade to without huge Regex searches.
> >
> > Since `` are used for literal strings (for poorly chosen reserved words
> as
> > field, table names (which happens from time to time)) in MySQL
> (multiline)
> > queries I doubt there is a simple way to distinguish and replace
> everything
> > to exec().
> >
> > rr
> >
> > --
> > PHP Internals - PHP Runtime Development Mailing List
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> Chase Peeler
> chasepee...@gmail.com


If you feel you want all those functions deprecated in favor of any other,
put up a RFC whenever you want to(No one is stopping you from that).

I think that's been inconsistencies from the part of early contributors
which is the same reason we are having "haystack and needle" problem and
I'm not sure there's a problem fixing those old days mistake.

The major issues I'm seeing now is that, those who did bring up those
functions back then are the one leading the fight against correcting them,
maybe it helps them stay relevant IDK.

Reply via email to