Skip to content

Commit 6addba1

Browse files
committed
Updated
Added more comments to descripe functionality. Added ini_set(memory_limit)
1 parent c812656 commit 6addba1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

root.php

+12-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
mb_internal_encoding('UTF-8');
33
mb_http_output('UTF-8');
44
mb_http_input('UTF-8');
5-
mb_regex_encoding('UTF-8');
5+
mb_regex_encoding('UTF-8');
6+
/**
7+
* Set memory limit to 2GB
8+
*/
9+
ini_set('memory_limit', '2048M');
610
/**
711
* See http://php.net/manual/en/timezones.php for supported time zones
812
*/
@@ -12,8 +16,10 @@
1216
*/
1317
define('ROOT_DIR',__DIR__);
1418

15-
//fallback for older php versions that does not
16-
//support the constant PHP_INT_MIN
19+
/**
20+
* Fallback for older php versions that does not
21+
* support the constant PHP_INT_MIN
22+
*/
1723
if(!defined('PHP_INT_MIN')){
1824
define('PHP_INT_MIN', ~PHP_INT_MAX);
1925
}
@@ -22,6 +28,9 @@
2228
* A folder used to hold system resources (such as images).
2329
*/
2430
define('RES_FOLDER','res');
31+
/**
32+
* Load Auto-loader. It simply a file that loads classes as needed.
33+
*/
2534
require_once ROOT_DIR.'/entity/AutoLoader.php';
2635
Util::displayErrors();
2736

0 commit comments

Comments
 (0)