Fix correct type for php_admin and sort hash

Hello, 

This fixes an issue for php_admin_flags & php_admin_values.
I've also added a "sort" to make the iteration hash order consistent.

Olivier