fuel/core — pull request #992 by tgriesser (2012-05-30 19:38:29+00:00)
Title: Make Input::xml & Input::json independent, cache php://input for hydrate(s)

Moved from fuel/core#991

An error that was brought up in the irc earlier today, `php://input` can only be read once, and if `hydrate()` is called to populate `static::$input` `Input::json()` and `Input::xml()` will have no content

I changed it so that `static::$xml` and `static::$json` are in two separate variables, as @wanwizard pointed out this could pose a problem if one was called (even if it isn't the intended request body) before the other. I also formatted the different conditionals so they reflect the style guide.

Also, moved this to a 1.2 request, as it's a bug on 1.2rc features.