src/ForkManager.php
public function getSharedResults() {
        if (!$this->shareResult) {
            return false;
        }
        if (!$this->isStarted) {
            return false;
        }
        if (!$this->isFinished) {
            trigger_error('children process was not interrupted', E_USER_NOTICE);
            return false;
        }
        $resultsContainer = $this->getDefaultResultsContainer();
        $results = new $resultsContainer();

        foreach ($this->handlers as $uid => $handler) {

            $resultContainer = $this->getDefaultResultContainer();
            $result = new $resultContainer();
            $result->setUid($uid);
            $result->setPid($handler);
            $result->setResult($this->getStorage()->read($uid));
            $results->addResult($uid, $result);
        }

        return $results;
    }
public function getSharedResults() {
        if (!$this->shareResult) {
            return false;
        }
        if (!$this->isStarted) {
            return false;
        }
        if (!$this->isFinished) {
            trigger_error('children process was not interrupted', E_USER_NOTICE);
            return false;
        }
        $resultsContainer = $this->getDefaultResultsContainer();
        $results = new $resultsContainer();

        foreach ($this->handlers as $uid => $handler) {

            $resultContainer = $this->getDefaultResultContainer();
            $result = new $resultContainer();
            $result->setUid($uid);
            $result->setPid($handler);
            $result->setResult($this->getStorage()->read($uid));
            $results->addResult($uid, $result);
        }

        return $results;
    }
public function getSharedResults ( ) { if ( ! $ this -> shareResult ) { return false ; } if ( ! $ this -> isStarted ) { return false ; } if ( ! $ this -> isFinished ) { trigger_error ( 'children process was not interrupted' , E_USER_NOTICE ) ; return false ; } $ resultsContainer = $ this -> getDefaultResultsContainer ( ) ; $ results = new $ resultsContainer ( ) ; foreach ( $ this -> handlers as $ uid => $ handler ) { $ resultContainer = $ this -> getDefaultResultContainer ( ) ; $ result = new $ resultContainer ( ) ; $ result -> setUid ( $ uid ) ; $ result -> setPid ( $ handler ) ; $ result -> setResult ( $ this -> getStorage ( ) -> read ( $ uid ) ) ; $ results -> addResult ( $ uid , $ result ) ; } return $ results ; }
Close all children
Close all children