HomePhabricator

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

Description

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