Also, this is catching execution from the script server, which is why I had to re-do the including of the cnf file.
# ============================================================================
# To make this code testable, we need to prevent code from running when it is
# included from the test script. The test script and this file have different
# filenames, so we can compare them. In some cases $_SERVER['SCRIPT_FILENAME']
# seems not to be defined, so we skip the check -- this check should certainly
# pass in the test environment.
# ============================================================================
if ( !array_key_exists('SCRIPT_FILENAME', $_SERVER)
|| basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME']) ) {
Also, this is catching execution from the script server, which is why I had to re-do the including of the cnf file.
# ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ====== 'SCRIPT_ FILENAME' ] ======= ======= ======= ======= ======= ======= ======= ======= ======= ====== key_exists( 'SCRIPT_ FILENAME' , $_SERVER) $_SERVER[ 'SCRIPT_ FILENAME' ]) ) {
# To make this code testable, we need to prevent code from running when it is
# included from the test script. The test script and this file have different
# filenames, so we can compare them. In some cases $_SERVER[
# seems not to be defined, so we skip the check -- this check should certainly
# pass in the test environment.
# =======
if ( !array_
|| basename(__FILE__) == basename(