{"action":"opened","issue":{"url":"https://api.github.com/repos/albertdahlin/dahbug/issues/5","labels_url":"https://api.github.com/repos/albertdahlin/dahbug/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/albertdahlin/dahbug/issues/5/comments","events_url":"https://api.github.com/repos/albertdahlin/dahbug/issues/5/events","html_url":"https://github.com/albertdahlin/dahbug/issues/5","id":56123605,"number":5,"title":"string_cap not presenting correcly in log with null byte","user":{"login":"freestream","id":5450032,"avatar_url":"https://avatars.githubusercontent.com/u/5450032?v=3","gravatar_id":"","url":"https://api.github.com/users/freestream","html_url":"https://github.com/freestream","followers_url":"https://api.github.com/users/freestream/followers","following_url":"https://api.github.com/users/freestream/following{/other_user}","gists_url":"https://api.github.com/users/freestream/gists{/gist_id}","starred_url":"https://api.github.com/users/freestream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freestream/subscriptions","organizations_url":"https://api.github.com/users/freestream/orgs","repos_url":"https://api.github.com/users/freestream/repos","events_url":"https://api.github.com/users/freestream/events{/privacy}","received_events_url":"https://api.github.com/users/freestream/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T12:35:53Z","updated_at":"2015-01-31T12:35:53Z","closed_at":null,"body":"A string containing null bytes longer then the string_cap is presented in the log with \"...\" ending but the string is only containing the the strings value except the null bytes. This gets a bit confusing when you know the cap is set to a heigh number but the string looks to be cut or is some way manipulated in the unexpected way. In the result bellow I would not expect the string to have \"...\" just after the string value. It looks more to me that I could have another function before the dump that have added the \"...\" to the string. Would be better if the null bytes was presented in some way.\r\n\r\nTo reproduce:\r\nstring_cap = 100\r\n\r\n$string = \"teststring\";\r\nstr_pad($string, 200, \"\\0\");\r\ndahbug::dump($string);\r\n\r\nthe output in the log will be\r\n(string:200:ASCII) 'teststring...'"}}