summaryrefslogtreecommitdiff
path: root/Zend/zend_modules.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-08-09 19:22:35 +0000
committerZeev Suraski <zeev@php.net>2000-08-09 19:22:35 +0000
commitc06692e9ec92bdbe22e7a4149b5365635c4ad950 (patch)
treefb3e7ccb8c5187dd8d39aacd97d2707739982769 /Zend/zend_modules.h
parent609577d8826e5a23565eb8fdf5033d60ed505c4e (diff)
downloadphp-git-c06692e9ec92bdbe22e7a4149b5365635c4ad950.tar.gz
The patch we promised - redesigned the compilation/execution API:
Advantages: - Smaller memory footprint for the op arrays - Slightly faster compilation times (due to saved erealloc() calls and faster zend_op initialization) - include_once() & require_once() share the same file list - Consistency between include() and require() - this mostly means that return() works inside require()'d files just as it does in include() files (it used to be meaningless in require()'d files, most of the time (see below)) - Made require() consistent with itself. Before, if the argument was not a constant string, require() took the include() behavior (with return()). - Removed lots of duplicate code. Bottom line - require() and include() are very similar now; require() is simply an include() which isn't allowed to fail. Due to the erealloc() calls for large op arrays, require() didn't end up being any faster than include() in the Zend engine.
Diffstat (limited to 'Zend/zend_modules.h')
0 files changed, 0 insertions, 0 deletions