src/Command/ServerInfo.php
protected function parseAllocationStats($str)
    {
        $stats = array();

        foreach (explode(',', $str) as $kv) {
            @list($size, $objects, $extra) = explode('=', $kv);

            // hack to prevent incorrect values when parsing the >=256 key
            if (isset($extra)) {
                $size = ">=$objects";
                $objects = $extra;
            }

            $stats[$size] = $objects;
        }

        return $stats;
    }
protected function parseAllocationStats($str)
    {
        $stats = array();

        foreach (explode(',', $str) as $kv) {
            @list($size, $objects, $extra) = explode('=', $kv);

            // hack to prevent incorrect values when parsing the >=256 key
            if (isset($extra)) {
                $size = ">=$objects";
                $objects = $extra;
            }

            $stats[$size] = $objects;
        }

        return $stats;
    }
protected function parseAllocationStats ( $ str ) { $ stats = array ( ) ; foreach ( explode ( ',' , $ str ) as $ kv ) { @ list ( $ size , $ objects , $ extra ) = explode ( '=' , $ kv ) ; // hack to prevent incorrect values when parsing the >=256 key if ( isset ( $ extra ) ) { $ size = ">=$objects" ; $ objects = $ extra ; } $ stats [ $ size ] = $ objects ; } return $ stats ; }
Parses the response and extracts the allocation statistics.

@param string $str Response buffer.

@return array
Parses the response and extracts the allocation statistics .