mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Add Safe PHP functions
This commit is contained in:
parent
04a956886a
commit
58cc098058
260 changed files with 49458 additions and 45 deletions
10
lib/Core.php
10
lib/Core.php
|
@ -1,11 +1,15 @@
|
|||
<?
|
||||
// Composer auto-loads the lib/ directory in composer.json
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use function Safe\mb_internal_encoding;
|
||||
use function Safe\mb_http_output;
|
||||
use function Safe\error_log;
|
||||
|
||||
mb_internal_encoding('UTF-8');
|
||||
mb_http_output('UTF-8');
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
// Composer auto-loads the lib/ directory in composer.json
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Custom error handler to output more details about the specific Apache request that caused an exception.
|
||||
set_exception_handler(function($ex){
|
||||
$errorString = "----------------------------------------\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue