def METHOD_NAME(self):
    env = {
        'LD_LIBRARY_PATH': '$LD_LIBRARY_PATH:$HOME/php/lib',
        'PATH': '$PATH:$HOME/php/bin:$HOME/php/sbin',
        'PHPRC': '$HOME/php/etc'
    }
    if 'snmp' in self._ctx['PHP_EXTENSIONS']:
        env['MIBDIRS'] = '$HOME/php/mibs'
    php_ini_d_path = os.path.join(self._ctx['BUILD_DIR'], 'php', 'etc', 'php.ini.d')
    if os.path.exists(php_ini_d_path):
        env['PHP_INI_SCAN_DIR'] = '$HOME/php/etc/php.ini.d/'
    return env