Re: [RFC] Normalize token_get_all() output (with flag)

From: Date: Tue, 05 Jan 2016 20:52:31 +0000
Subject: Re: [RFC] Normalize token_get_all() output (with flag)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-90149@lists.php.net to get a copy of this message
Hi Sara, Sara Golemon wrote:
I swear, 2016 isn't going to be "An RFC per day" year, but... https://wiki.php.net/rfc/token-get-always-tokens This should be pretty non-controversial. I hope?
This is more of a side-note, but maybe it's worth bringing up. Since token_get_all gives an array with subarrays of a regular structure, might it be worthwhile returning an array of objects instead? It would probably reduce memory usage (assuming they're objects of a Token class or something, not StdClass), but I don't know if it's that useful. Thoughts? -- Andrea Faulds https://ajf.me/

« previous php.internals (#90149) next »