function setPhpInstallCondition($min, $max, $exclude = false)
    {
        $r = &$this->_getCurrentRelease();
        if ($r === null) {
            return false;
        }
        $this->_isValid = 0;
        if (isset($r['installconditions']['php'])) {
            unset($r['installconditions']['php']);
        }
        $dep = array('min' => $min, 'max' => $max);
        if ($exclude) {
            if (is_array($exclude) && count($exclude) == 1) {
                $exclude = $exclude[0];
            }
            $dep['exclude'] = $exclude;
        }
        if ($this->getPackageType() == 'extsrc' || $this->getPackageType() == 'zendextsrc') {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('configureoption', 'binarypackage',
                        'filelist'),
                    'php' => array('extension', 'os', 'arch')
                ));
        } else {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('filelist'),
                    'php' => array('extension', 'os', 'arch')
                ));
        }
    }
function setPhpInstallCondition($min, $max, $exclude = false)
    {
        $r = &$this->_getCurrentRelease();
        if ($r === null) {
            return false;
        }
        $this->_isValid = 0;
        if (isset($r['installconditions']['php'])) {
            unset($r['installconditions']['php']);
        }
        $dep = array('min' => $min, 'max' => $max);
        if ($exclude) {
            if (is_array($exclude) && count($exclude) == 1) {
                $exclude = $exclude[0];
            }
            $dep['exclude'] = $exclude;
        }
        if ($this->getPackageType() == 'extsrc' || $this->getPackageType() == 'zendextsrc') {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('configureoption', 'binarypackage',
                        'filelist'),
                    'php' => array('extension', 'os', 'arch')
                ));
        } else {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('filelist'),
                    'php' => array('extension', 'os', 'arch')
                ));
        }
    }
function setPhpInstallCondition ( $ min , $ max , $ exclude = false ) { $ r = & $ this -> _getCurrentRelease ( ) ; if ( $ r === null ) { return false ; } $ this -> _isValid = 0 ; if ( isset ( $ r [ 'installconditions' ] [ 'php' ] ) ) { unset ( $ r [ 'installconditions' ] [ 'php' ] ) ; } $ dep = array ( 'min' => $ min , 'max' => $ max ) ; if ( $ exclude ) { if ( is_array ( $ exclude ) && count ( $ exclude ) == 1 ) { $ exclude = $ exclude [ 0 ] ; } $ dep [ 'exclude' ] = $ exclude ; } if ( $ this -> getPackageType ( ) == 'extsrc' || $ this -> getPackageType ( ) == 'zendextsrc' ) { $ r = $ this -> _mergeTag ( $ r , $ dep , array ( 'installconditions' => array ( 'configureoption' , 'binarypackage' , 'filelist' ) , 'php' => array ( 'extension' , 'os' , 'arch' ) ) ) ; } else { $ r = $ this -> _mergeTag ( $ r , $ dep , array ( 'installconditions' => array ( 'filelist' ) , 'php' => array ( 'extension' , 'os' , 'arch' ) ) ) ; } }
Set an installation condition based on php version for the current release set
@param string minimum version
@param string maximum version
@param false|array incompatible versions of PHP
Set an installation condition based on php version for the current release set