{"comment":{"created_at":"2011-10-11T15:38:08Z","body":"Understood, but if that's the case, then there's more wrong than just documentation.  The validation starting on line 135 is going to fail if you use the format you describe.","updated_at":"2011-10-11T15:38:08Z","url":"https://api.github.com/repos/bobthecow/mustache.php/issues/comments/2364816","id":2364816,"user":{"avatar_url":"https://secure.gravatar.com/avatar/f0f8570254983e949b9d5b2a90d72474?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/wmorancfi","id":1116343,"login":"wmorancfi"}},"action":"created","issue":{"number":59,"created_at":"2011-10-11T14:15:28Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Passing the unescaped pragma as part of the options array in the constructor doesn't work.\r\n\r\nIt seems as if the problem is that _pragmas and _localPragmas are stored differently (_pragmas uses the array value as the pragma, whereas _localPragmas uses the array key, and I assume (from the code) that the value can be true or false to indicate whether the pragma is enabled or disabled)\r\n\r\nUnfortunately, line 381 (method _renderPragmas()) simply copies _pragmas to _localPragmas, which results in data that's interpreted wrong later.\r\n\r\nI fixed this by changing line 381 from\r\n$this->_localPragmas = $this->_pragmas;\r\nto\r\n$this->_localPragmas = array_fill_keys($this->_pragmas, true);","comments":2,"title":"Pragma in constructor not working","updated_at":"2011-10-11T15:38:08Z","url":"https://api.github.com/repos/bobthecow/mustache.php/issues/59","id":1875077,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/f0f8570254983e949b9d5b2a90d72474?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/wmorancfi","id":1116343,"login":"wmorancfi"},"html_url":"https://github.com/bobthecow/mustache.php/issues/59","labels":[],"state":"open"},"legacy":{"issue_id":1875077,"comment_id":2364816}}