Thanks to visit codestin.com
Credit goes to news-web.php.net

Re: [RFC] is_literal()

From: Date: Sat, 21 Mar 2020 23:22:45 +0000
Subject: Re: [RFC] is_literal()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sat, Mar 21, 2020 at 4:58 PM Craig Francis <[email protected]> wrote:

> I'm happy to use a different name; but I should add that is_numeric() isn't really a
> type, there are other functions such as is_writable(), and the taint extension uses is_tainted().

Right, good points. However, to my logic, whether or not the value was
created from a literal is not something you can infer from the value
itself, it needs an accompanying flag or something.

I'll suggest is_from_literal() as a more precise formulation.

> I've talked to Paul Dragoonis and Derick Rethans recently (they both kindly did talks at
> PHP-SW); when I mentioned it to Paul, I was told that's where I should start looking, and that
> was the correct terminology; and Derick helped confirm some of these ideas (but we were walking to
> the pub at the time).

Sounds like you were having fun though :-)

> And while I keep trying, I don't know enough about C, or the internals of PHP.

Appreciate the effort.


Thread (13 messages)

« previous php.internals (#109197) next »