Giter VIP home page Giter VIP logo

mogilefs-php-model's People

Contributors

jskarpe avatar yuav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mogilefs-php-model's Issues

Undefined index: host

Your config set up is throwing an error
yuav/mogilefs/src/MogileFS/File/Mapper/Adapter/Tracker.php
Line 355

The foreach loop never sets any of the config items.
`
foreach ($options['tracker'] as $host) {
$parts = parse_url($host);
if (!isset($parts['port'])) {
$parts['port'] = 7001;
}

        $errno = null;
        $errstr = null;
        $requestTimeout = isset($options['request_timeout']) ? $options['request_timeout'] : null;
        $this->_socket = fsockopen($parts['host'], $parts['port'], $errno, $errstr, $requestTimeout);
        if ($this->_socket) {
            break;
        }
    }

`

How about merging this library with Gaufrette

Hi @yuav

I just found your library and even though I didn't read through the whole code line by line it seems you have some nice stuff going on here.

I've recently been working a little bit with this another library called Gaufrette originally made by good people at KnpLabs. It's a filesystem abstraction library that aims to implement most of the popular filesystems under a consistent API. People from my company also wrote an initial version of MogileFS adapter for it but, to be honest, it could be a bit better.

So what I'm asking is that would you be interested in contributing your MogileFS implementation for Gaufrette. Why? I guess PHP community would benefit more from one very good, well tested and stabile filesystem abstraction library than from many small libraries.

So, anyway, I'm not an owner of Gaufrette project, so I can make no promises about anything. But I know good ideas and implementations are well taken over there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.