Convert all "include_once" warnings into exceptions in all PHP versions
Convert all "include_once" warnings into exceptions in all PHP versions

Summary:
Fixes T12190. That task has a good description of the issue.

The old code kind of snuck by PHP5's rules to kind of get the right result. To make this work for PHP7, just wipe the error reporting entirely and explicitly convert any error messages into exceptions.

(This does not use pht() because it may run before pht() loads.)

Test Plan: Loaded a revision in PHP7 before D18723, saw an exception pointing at the implementation error.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T12190

Differential Revision: https://secure.phabricator.com/D18724

aik099/libphutil,wikimedia/phabricator-libphutil,uber/libphutil,uhd-urz/libphutil,codelabs-ch/libphutil,r4nt/libphutil,aik099/libphutil,devurandom/libphutil,uber/libphutil,wikimedia/phabricator-libphutil,devurandom/libphutil,wikimedia/phabricator-libphutil,Khan/libphutil,r4nt/libphutil,devurandom/libphutil,r4nt/libphutil,codelabs-ch/libphutil,uhd-urz/libphutil,Khan/libphutil,codelabs-ch/libphutil,Khan/libphutil,uhd-urz/libphutil,aik099/libphutil,uber/libphutil