Fix glob pb for core module / when open_basedir is enabled