Provides a windows replacement for the getmxrr function.
Params and behaviour is that of the regular getmxrr function.
@see  http://www.php.net/getmxrr
185460
protected function getmxrr($hostname, &$mxhosts, &$mxweights)
        {
            if (!Arrays::is($mxhosts)) {
                $mxhosts = array();
            }
            if (!Arrays::is($mxweights)) {
                $mxweights = array();
            }
            if (empty($hostname)) {
                return;
            }
            $cmd = 'nslookup -type=MX ' . escapeshellarg($hostname);
            if (!empty($this->mx_query_ns)) {
                $cmd .= ' ' . escapeshellarg($this->mx_query_ns);
            }
            exec($cmd, $output);
            if (empty($output)) {
                return;
            }
            $i = -1;
            foreach ($output as $line) {
                $i++;
                if (preg_match("/^$hostname\tMX preference = ([0-9]+), mail exchanger = (.+)$/i", $line, $parts)) {
                    $mxweights[$i] = trim($parts[1]);
                    $mxhosts[$i] = trim($parts[2]);
                }
                if (preg_match('/responsible mail addr = (.+)$/i', $line, $parts)) {
                    $mxweights[$i] = $i;
                    $mxhosts[$i] = trim($parts[1]);
                }
            }
            return ($i != -1);
        }
867004
static function optimizeFunction( $useComments, &$php, $tpl, &$node, &$resourceData )
    {
        $ret = 0;
        /* Just run the optimizer over all parameters */
        if ( isset( $node[3] ) and is_array( $node[3] ) )
        {
            foreach ( $node[3] as $key => $parameter )
            {
                $ret = $ret | eZTemplateOptimizer::optimizeVariable( $useComments, $php, $tpl, $node[3][$key], $resourceData );
            }
        }
        return $ret;
    }
39323
private function getResizeParamsString(): string
    {
        $ret = '';
        foreach ($this->uriParams['resize-params'] as $param => $value) {
            $ret .= \sprintf('_%s%s', $param, $value);
        }
        return $ret !== '' ? \sprintf('_%s', $ret) : '';
    }
1307250
public static dnsmxrec[] get(nitro_service service, dnsmxrec_args args) throws Exception{
		dnsmxrec obj = new dnsmxrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service, option);
		return response;
	}
50227
public static function url()
    {
        if (! isset(self::$_url)) {
            $url = self::scheme().'://';

            if (PHP_SAPI !== 'cli') {
                /*
            	 * Since we are assigning the URI from the server variables, we first need
             	 * to determine if we are running on apache or IIS.  If PHP_SELF and REQUEST_URI
             	 * are present, we will assume we are running on apache.
             	 */
                if (! empty($_SERVER['PHP_SELF']) && !empty($_SERVER['REQUEST_URI'])) {
                    /*
                 	 * To build the entire URI we need to prepend the protocol, and the http host
                 	 * to the URI string.
                 	 */
                    $url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

                    /*
                 	 * Since we do not have REQUEST_URI to work with, we will assume we are
                 	 * running on IIS and will therefore need to work some magic with the SCRIPT_NAME and
                 	 * QUERY_STRING environment variables.
                 	 */
                } else {
                    // IIS uses the SCRIPT_NAME variable instead of a REQUEST_URI variable
                    $url .= $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];

                    // If the query string exists append it to the URI string
                    if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
                        $url .= '?' . $_SERVER['QUERY_STRING'];
                    }
                }
            } else {
                $url .= 'anahita';
            }

            // Sanitize the url since we can't trust the server var
            $url = AnService::get('anahita:filter.url')->sanitize($url);

            // Create the URI object
            self::$_url = AnService::get('anahita:http.url', array('url' => $url));
        }

        return self::$_url;
    }
400559
function modify( $tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters ) {
        switch ($operatorName)
        {
            case 'xhprof_start':
                eZXHProfLogger::start( $namedParameters['flags'], $namedParameters['options'] );
                $operatorValue = null;
                break;
            case 'xhprof_stop':
                eZXHProfLogger::stop( $namedParameters['dosave'] );
                $operatorValue = null;
                break;
            case 'record_value':
                eZPerfLogger::recordValue( $namedParameters['name'], $operatorValue );
                $operatorValue = null;
                break;
            case 'make_global':
                /// @todo investigate: shal we use copy if $operatorValue is an object?
                $GLOBALS[$namedParameters['name']] = $namedParameters['value'];
                $operatorValue = null;
        }
    }
636652
public function getDynUrlParams()
    {
        $sParams = parent::getDynUrlParams();

        if ($sCnId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid')) {
            $sParams .= "&amp;cnid={$sCnId}";
        }
        if ($sAnId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('anid')) {
            $sParams .= "&amp;anid={$sAnId}";
        }
        if ($sListType = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('listtype')) {
            $sParams .= "&amp;listtype={$sListType}";
        }
        // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
        if ($sRecommId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('recommid')) {
            $sParams .= "&amp;recommid={$sRecommId}";
        }
        // END deprecated

        return $sParams;
    }
716479
protected function getPhp()
    {
        if (is_null($this->php_path)) {
            $finder = new PhpExecutableFinder();
            if (!($this->php_path = $finder->find())) {
                throw new \RuntimeException(
                    'The php executable could not be found, add it to your PATH environment variable and try again'
                );
            }
        }

        return $this->php_path;
    }
314857
public function withoutParam(string $param_name): ParamHolderInterface
    {
        if (!$this->has($param_name)) {
            return $this;
        }
        $param_holder = clone $this;
        unset($param_holder->params[$param_name]);
        return $param_holder;
    }
177180
function _getObjAttr($t)
	{
		$c = explode("\xbb\xa4\xac", $t, 2);
		$c = explode(",", $c[1], 2);
		foreach ($c as $v) {
			$v = explode("=", $v, 2);
			$sp[$v[0]] = $v[1];
		}
		return (unserialize($sp['objattr']));
	}
1294287
public function CloneInstance()
	{
		$result = new XBRLFilterMemberDRS( $this->context, $this->dimension, $this->primaryItem, $this->member, $this->linkRole, $this->axis );
		if ( ! is_null( $this->index ) ) $result->index = $this->index;
		if ( ! is_null( $this->memberPath ) ) $result->memberPath = $this->memberPath;
		if ( ! is_null( $this->candidates ) ) $result->candidates = $this->candidates;
		return $result;
	}
502527
private function getCurloptHeaderFunction() : callable
    {
        return function($ch, $data){
            $str = trim($data);
            if('' !== $str){
                if(strpos(strtolower($str), 'http/') === 0){
                    $status_line                                        = $str;
                    @list($http_version, $http_code, $reason_phrase)    = explode(' ', $status_line, 3);
                    $this->Response = $this->Response->withStatus((int) $http_code, (string) $reason_phrase);
                    $this->Response = $this->Response->withProtocolVersion((string) $http_version);
                }else{
                    $header_line            = $str;
                    @list($name, $value)    = explode(':', $header_line, 2);
                    $this->Response         = $this->Response->withAddedHeader(trim((string) $name), trim((string) $value));
                }
            }
            return strlen($data);
        };
    }
400364
private function default() {

        $this->callback->filter(function (HttpCallBack $test) {
           
            return !strcmp($test->getPath(), $this->actual.'/**');

        })->each(function (HttpCallBack $test) {
 
            $test->call($this->rutesManager->getParameter());

        });
        
    }
212269
private function functionCallParameter() {
    switch ($this->currentType) {
      case '&':
        return $this->writeVariable();
      case T_ELLIPSIS:
        $node = new SplatNode();
        $this->mustMatch(T_ELLIPSIS, $node);
        $node->addChild($this->expr(), 'expression');
        return $node;
      default:
        return $this->expr();
    }
  }
655874
function CallArguments_Argument(&$res, $sub)
    {
        if (!empty($res['php'])) {
            $res['php'] .= ', ';
        }

        $res['php'] .= ($sub['ArgumentMode'] == 'default') ? $sub['string_php'] :
            str_replace('$$FINAL', 'XML_val', $sub['php']);
    }
1337688
private function getFromExcludedSource($key, $replace, $locale, $fallback)
    {
        if(!PageKey::fromLineKeyString($key)->isExcludedSource()) return null;

        return parent::get($key, $replace, $locale, $fallback);
    }
1260784
private function _getEnablingCode()
	{
		// Finishing with comment slashes for comment the php open label:
		return self::PHP_OPEN_TAG. PHP_EOL . self::ENABLED_LABEL . PHP_EOL . str_replace( '%replacement_path%', $this->_alternative_page_path, self::REDIRECT_CODE ) . PHP_EOL ."//";
	}