{"action":"closed","number":521,"pull_request":{"review_comments":0,"created_at":"2011-11-20T08:51:29Z","state":"closed","patch_url":"https://github.com/fabpot/Twig/pull/521.patch","changed_files":1,"updated_at":"2011-11-20T09:03:07Z","_links":{"review_comments":{"href":"https://api.github.com/repos/fabpot/Twig/pulls/521/comments"},"comments":{"href":"https://api.github.com/repos/fabpot/Twig/issues/521/comments"},"html":{"href":"https://github.com/fabpot/Twig/pull/521"},"self":{"href":"https://api.github.com/repos/fabpot/Twig/pulls/521"}},"user":{"gravatar_id":"8aeaeeefd99748285d87441b9cff81d0","id":872945,"url":"https://api.github.com/users/shvchk","login":"shvchk","avatar_url":"https://secure.gravatar.com/avatar/8aeaeeefd99748285d87441b9cff81d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"issue_url":"https://github.com/fabpot/Twig/issues/521","comments":0,"deletions":1,"body":"Date could be checked against this condition, as proposed in my patch:\r\n\r\n```\r\nctype_digit((string) $date) \r\n|| (('-' === $date[0])\r\n    && (ctype_digit(substr($date, 1))))\r\n```\r\nor this:\r\n\r\n```\r\npreg_match('/^\\-?\\d+/', $date)\r\n```\r\nSecond is maybe more readable, but 20% slower.","merged":false,"commits":1,"mergeable":true,"additions":4,"id":512180,"base":{"user":{"gravatar_id":"f1a2c5905e121d09feba5ad73898ffca","id":47313,"url":"https://api.github.com/users/fabpot","login":"fabpot","avatar_url":"https://secure.gravatar.com/avatar/f1a2c5905e121d09feba5ad73898ffca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2009-10-07T21:23:38Z","pushed_at":"2011-11-18T21:32:14Z","private":false,"updated_at":"2011-11-20T07:01:46Z","clone_url":"https://github.com/fabpot/Twig.git","svn_url":"https://svn.github.com/fabpot/Twig","name":"Twig","watchers":784,"master_branch":null,"language":"PHP","forks":140,"owner":{"gravatar_id":"f1a2c5905e121d09feba5ad73898ffca","id":47313,"url":"https://api.github.com/users/fabpot","login":"fabpot","avatar_url":"https://secure.gravatar.com/avatar/f1a2c5905e121d09feba5ad73898ffca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":330275,"homepage":"http://twig.sensiolabs.org/","description":"Twig, the flexible, fast, and secure template language for PHP","git_url":"git://github.com/fabpot/Twig.git","html_url":"https://github.com/fabpot/Twig","url":"https://api.github.com/repos/fabpot/Twig","size":1188,"open_issues":17,"fork":false,"ssh_url":"git@github.com:fabpot/Twig.git"},"sha":"1b32617b977ff7d5f15393e7627b223122238674","ref":"master","label":"fabpot:master"},"merged_by":null,"number":521,"head":{"user":{"gravatar_id":"8aeaeeefd99748285d87441b9cff81d0","id":872945,"url":"https://api.github.com/users/shvchk","login":"shvchk","avatar_url":"https://secure.gravatar.com/avatar/8aeaeeefd99748285d87441b9cff81d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"repo":{"created_at":"2011-11-20T07:01:46Z","pushed_at":"2011-11-20T08:41:20Z","private":false,"updated_at":"2011-11-20T08:41:22Z","clone_url":"https://github.com/shvchk/Twig.git","svn_url":"https://svn.github.com/shvchk/Twig","name":"Twig","watchers":1,"master_branch":null,"language":"PHP","forks":0,"owner":{"gravatar_id":"8aeaeeefd99748285d87441b9cff81d0","id":872945,"url":"https://api.github.com/users/shvchk","login":"shvchk","avatar_url":"https://secure.gravatar.com/avatar/8aeaeeefd99748285d87441b9cff81d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2812611,"homepage":"http://twig.sensiolabs.org/","description":"Twig, the flexible, fast, and secure template language for PHP","git_url":"git://github.com/shvchk/Twig.git","html_url":"https://github.com/shvchk/Twig","url":"https://api.github.com/repos/shvchk/Twig","size":84,"open_issues":0,"fork":true,"ssh_url":"git@github.com:shvchk/Twig.git"},"sha":"8df601626f9025754b6ac485de473340138fdaea","ref":"patch-1","label":"shvchk:patch-1"},"title":"Support of negative timestamps","closed_at":"2011-11-20T09:03:07Z","html_url":"https://github.com/fabpot/Twig/pull/521","url":"https://api.github.com/repos/fabpot/Twig/pulls/521","diff_url":"https://github.com/fabpot/Twig/pull/521.diff","merged_at":null}}