Hello internals,
As you know, the PHP codebase makes heavy use of global variables. In ZTS
builds, access to these globals are cleverly mapped to thread local storage
via macros. To my knowledge, the limitation here is that there's no way to
run multiple PHP engines in a single thread. (P
olon-colon-function.)
Benefits in my view are readability and potential use in static analysis.
Downsides (as implemented in proof-of-concept) are that it can be
needlessly littered in a lot of places, and that it breaks class consts
named `function`. I'd vote against it in its current state
Hello all,
Many getopt implementations expose an `optind` variable to userland
which contains the last argv index examined by the option parser. This
is useful when mixing flag arguments with positional arguments, as it
makes locating the positional arguments easy.
For example, in C and Bash
Translate PHP Manual to Bahasa Indonesia.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php