12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace RandomLibTest;
- ini_set('memory_limit', '1G');
- spl_autoload_register(function ($class) {
- $nslen = strlen(__NAMESPACE__);
- if (substr($class, 0, $nslen) != __NAMESPACE__) {
-
- return;
- }
- $path = substr(str_replace('\\', '/', $class), $nslen);
- $path = __DIR__ . $path . '.php';
- if (file_exists($path)) {
- require $path;
- }
- });
- define('PATH_ROOT', dirname(__DIR__));
- require_once dirname(__DIR__) . '/vendor/autoload.php';
|