implemented handling of defines in php configuration