| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Autoload shim for the optional mbstring polyfill. |
| 5 |
* |
| 6 |
* The entire polyfill (the Mbstring class, the global mb_* wrappers, and the |
| 7 |
* Unicode case tables) lives in the self-contained Support/MBString/ folder. |
| 8 |
* This shim is the single composer "files" autoload entry that activates it. |
| 9 |
* |
| 10 |
* To drop mbstring fallback support: delete the Support/MBString/ folder. This |
| 11 |
* shim then silently does nothing (the guard below fails), so nothing breaks |
| 12 |
* at autoload time and no composer.json change is required. The mb_* calls in |
| 13 |
* the framework continue to use the native extension where it is available. |
| 14 |
*/ |
| 15 |
|
| 16 |
$polyfill = __DIR__ . '/MBString/polyfill.php'; |
| 17 |
|
| 18 |
if (is_file($polyfill)) { |
| 19 |
require_once $polyfill; |
| 20 |
} |
| 21 |
|