Skip to content

Instantly share code, notes, and snippets.

@inxomnyaa
Created May 3, 2017 06:57
Show Gist options
  • Save inxomnyaa/592826a1271885f39a1983ed67b552ce to your computer and use it in GitHub Desktop.
Save inxomnyaa/592826a1271885f39a1983ed67b552ce to your computer and use it in GitHub Desktop.
Error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 8192 bytes)
File: /src/pocketmine/utils/Config
Line: 132
Type: E_ERROR
Code:
[123] $extension = explode(".", basename($this->file));
[124] $extension = strtolower(trim(array_pop($extension)));
[125] if(isset(Config::$formats[$extension])){
[126] $this->type = Config::$formats[$extension];
[127] }else{
[128] $this->correct = false;
[129] }
[130] }
[131] if($this->correct === true){
[132] $content = file_get_contents($this->file);
[133] switch($this->type){
[134] case Config::PROPERTIES:
[135] case Config::CNF:
[136] $this->parseProperties($content);
[137] break;
[138] case Config::JSON:
[139] $this->config = json_decode($content, true);
[140] break;
[141] case Config::YAML:
[142] $content = self::fixYAMLIndexes($content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment