private function multiCall( $params = null ) {
		if ( $params && is_array( $params ) ) 
		{
			$result = array();
			$params = $params[0];
			foreach ( $params as $param ) {
				$method = $param['methodName'];
				$args = $param['params'];
				try {
					// XML-RPC specification says that non-fault results must be in a single item array
					$result[] = array( $this->call($method, $args) );
				} catch( Exception $e) {
					$result[] = ripcord::fault( $e->getCode(), $e->getMessage() );
				}
			}
			$result = xmlrpc_encode_request( null, $result, $this->outputOptions );
		} else {
			$result = xmlrpc_encode_request( 
				null, 
				ripcord::fault( -2, 'Illegal or no params set for system.multiCall'), 
				$this->outputOptions
			);
		}	
		return $result;
	}
private function multiCall( $params = null ) {
		if ( $params && is_array( $params ) ) 
		{
			$result = array();
			$params = $params[0];
			foreach ( $params as $param ) {
				$method = $param['methodName'];
				$args = $param['params'];
				try {
					// XML-RPC specification says that non-fault results must be in a single item array
					$result[] = array( $this->call($method, $args) );
				} catch( Exception $e) {
					$result[] = ripcord::fault( $e->getCode(), $e->getMessage() );
				}
			}
			$result = xmlrpc_encode_request( null, $result, $this->outputOptions );
		} else {
			$result = xmlrpc_encode_request( 
				null, 
				ripcord::fault( -2, 'Illegal or no params set for system.multiCall'), 
				$this->outputOptions
			);
		}	
		return $result;
	}
private function multiCall ( $ params = null ) { if ( $ params && is_array ( $ params ) ) { $ result = array ( ) ; $ params = $ params [ 0 ] ; foreach ( $ params as $ param ) { $ method = $ param [ 'methodName' ] ; $ args = $ param [ 'params' ] ; try { // XML-RPC specification says that non-fault results must be in a single item array $ result [ ] = array ( $ this -> call ( $ method , $ args ) ) ; } catch ( Exception $ e ) { $ result [ ] = ripcord :: fault ( $ e -> getCode ( ) , $ e -> getMessage ( ) ) ; } } $ result = xmlrpc_encode_request ( null , $ result , $ this -> outputOptions ) ; } else { $ result = xmlrpc_encode_request ( null , ripcord :: fault ( - 2 , 'Illegal or no params set for system.multiCall' ) , $ this -> outputOptions ) ; } return $ result ; }
This method implements the system.multiCall method without dumping core. The built-in method from the
xmlrpc library dumps core when you have registered any php methods, fixed in php 5.3.2
This method implements the system . multiCall method without dumping core . The built - in method from the xmlrpc library dumps core when you have registered any php methods fixed in php 5 . 3 . 2