I don't think that everything must be object oriented in the standard library, though I'm not a big fan of the functions in global namespace either.
The structure of Go's standard library could be a good inspiration for restructuring PHP's standard library.