{"action":"opened","issue":{"url":"https://api.github.com/repos/egeloen/ivory-json-builder/issues/3","labels_url":"https://api.github.com/repos/egeloen/ivory-json-builder/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/egeloen/ivory-json-builder/issues/3/comments","events_url":"https://api.github.com/repos/egeloen/ivory-json-builder/issues/3/events","html_url":"https://github.com/egeloen/ivory-json-builder/issues/3","id":103840971,"number":3,"title":"Memory exhausted on JsonBuilder.php on line 131","user":{"login":"abkrim","id":1238625,"avatar_url":"https://avatars.githubusercontent.com/u/1238625?v=3","gravatar_id":"","url":"https://api.github.com/users/abkrim","html_url":"https://github.com/abkrim","followers_url":"https://api.github.com/users/abkrim/followers","following_url":"https://api.github.com/users/abkrim/following{/other_user}","gists_url":"https://api.github.com/users/abkrim/gists{/gist_id}","starred_url":"https://api.github.com/users/abkrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abkrim/subscriptions","organizations_url":"https://api.github.com/users/abkrim/orgs","repos_url":"https://api.github.com/users/abkrim/repos","events_url":"https://api.github.com/users/abkrim/events{/privacy}","received_events_url":"https://api.github.com/users/abkrim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-29T09:13:28Z","updated_at":"2015-08-29T09:13:28Z","closed_at":null,"body":"Hello\r\n\r\nI caught an exception while trying to pass an array.\r\n````memory_limit = 256M````\r\n````\r\nAllowed memory size of 268435456 bytes exhausted (tried to allocate 137 bytes) in /usr/local/cpanel/whostmgr/docroot/cgi/cprsync/vendor/egeloen/json-builder/src/JsonBuilder.php on line 131\r\n````\r\n````\r\n$json = self::listFoldersToJson(InitApp::$cfg['user_home']);\r\n                // Guardmos con la la clase json\r\n                $builder = new JsonBuilder();\r\n                //->setJsonEncodeOptions(JSON_FORCE_OBJECT)\r\n                $json_encode = $builder\r\n                    ->reset()\r\n                    ->setValues($json)\r\n                    ->build();\r\n````\r\n$json it's array with \r\n\r\n````\r\n $info = array(\r\n                'file'        => $fs_info->getFilename(),\r\n                'path'        => str_replace(InitApp::$cfg['user_home'].'/','',str_replace('\\\\', '/',$fs_info->getPathname())),\r\n                'permissions' => substr(sprintf('%o', $fs_info->getPerms()), -4),\r\n                'owner'       => $fs_info->getOwner(),\r\n                'group'       => $fs_info->getGroup(),\r\n                'size'        => $fs_info->getSize (),\r\n                'date'        => $fs_info->getMTime(),\r\n                'depth'       => $depth\r\n            );\r\n...\r\nApreciate help...\r\n````\r\n\r\n\r\n\r\n"}}