Fixed E_STRICT errors,add support for lang options

Applied fix to handle errors surfacing when error reporting level is set to E_STRICT (Creating default object from empty value)
Added support for lang configuration options.