Added a SG(server_context) NULL check to php_apache_getenv. This can get called when "<key> = ${<key>}:/foo" is used in a .ini file, but <key> has not be set yet. You will end up with a value of ":/foo", but at least it will not crash.