Make Composer work with PHP 5.2 and earlier. Reported by @voku

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Typo in docs, thanks Soleil Golden for reporting.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>