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

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