protected function _initOptions($options)
    {
        $defaultOptions = array(
            'soap_version' => SOAP_1_1,
            'authentication' => SOAP_AUTHENTICATION_BASIC,
            'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
            'exceptions' => true,
            'timeout' => (int) ini_get('default_socket_timeout'), // in seconds
        );
        $options = array_merge($defaultOptions, $options);

        ini_set('default_socket_timeout', (int) $options['timeout']);

        return $options;
    }
protected function _initOptions($options)
    {
        $defaultOptions = array(
            'soap_version' => SOAP_1_1,
            'authentication' => SOAP_AUTHENTICATION_BASIC,
            'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
            'exceptions' => true,
            'timeout' => (int) ini_get('default_socket_timeout'), // in seconds
        );
        $options = array_merge($defaultOptions, $options);

        ini_set('default_socket_timeout', (int) $options['timeout']);

        return $options;
    }
protected function _initOptions ( $ options ) { $ defaultOptions = array ( 'soap_version' => SOAP_1_1 , 'authentication' => SOAP_AUTHENTICATION_BASIC , 'features' => SOAP_SINGLE_ELEMENT_ARRAYS , 'exceptions' => true , 'timeout' => ( int ) ini_get ( 'default_socket_timeout' ) , // in seconds ) ; $ options = array_merge ( $ defaultOptions , $ options ) ; ini_set ( 'default_socket_timeout' , ( int ) $ options [ 'timeout' ] ) ; return $ options ; }
init the options.

@param array $options array of options

@return array
init the options .