I'm getting ready to update my wiki and noticed that extensions are not
declared the same way in LocalSettings.php. I have about 57 extensions, and
all but 7 use 'require_once'
From a programmatic standpoint, the difference appears
to be in how PHP
will handle errors.
The require() function is identical to include(), except that it handles
errors differently. If an error occurs, the include() function generates a
warning, but the script will continue execution. The require() generates a
fatal error, and the script will stop.
In the general scheme of things, is one a better practice over the other?
Is it nuanced between extensions in such a way that some extensions need
one over the other?
Yours,
Chris Koerner
clkoerner.com