[ticket/11660] Fix bugs from bugs in #11651 (missing vars, db->sql_connect)

PHPBB3-11660
[ticket/11662] Typos: occured -> occurred

PHPBB3-11662
Merge remote-tracking branch 'EXreaction/ticket/11660' into develop

* EXreaction/ticket/11660:
  [ticket/11660] Fix bugs from bugs in #11651 (missing vars, db->sql_connect)
Merge pull request #1526 from bantu/ticket/11662-develop

[ticket/11662] Typos: occured -> occurred
[ticket/11664] Stop creating php.html file in root path in tests

Also includephp_absolute.html

PHPBB3-11664
Merge remote-tracking branch 'EXreaction/ticket/11664' into develop

* EXreaction/ticket/11664:
  [ticket/11664] Stop creating php.html file in root path in tests