Code Monkey home page Code Monkey logo

Comments (11)

Bandit avatar Bandit commented on June 19, 2024

I get that too.

from php-resque.

ssx avatar ssx commented on June 19, 2024

Seems it doesn't like the friendly wrapped Exception handler in lib/Redisent/Redisent.php. If you comment out lines 15 and 16, then it'll run the demos without issue.

from php-resque.

chrisboulton avatar chrisboulton commented on June 19, 2024

I don't suppose you guys are using php-resque in combination with some sort of framework/library that's already creating its own RedisException class?

I really hate how Redisent hasn't named the class Redisent_Exception - I might look at changing that.

from php-resque.

Bandit avatar Bandit commented on June 19, 2024

I have PHPRedis installed: https://github.com/nicolasff/phpredis

from php-resque.

chrisboulton avatar chrisboulton commented on June 19, 2024

Ah cool - I guess I'll rename the RedisException class to Redisent_Exception or similar then.

from php-resque.

eby avatar eby commented on June 19, 2024

we're using redisent for other stuff so was looking at setting php-resque to use the external lib. A quick look at commits seems to show that he has integrated most of the fixes you have implemented so might do a pull request for an exception rename.

from php-resque.

cj avatar cj commented on June 19, 2024

Any update on this?

from php-resque.

ssx avatar ssx commented on June 19, 2024

Hello,

There was indeed, this commit should fix it:

1a5564d

The issue was with the autoloader loading it twice.

Hope thats helpful.

On 1 Nov 2011, at 22:18, cj wrote:

Any update on this?

Reply to this email directly or view it on GitHub:
#19 (comment)

Scott Wilcox

@dordotky | [email protected] | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

from php-resque.

stevencorona avatar stevencorona commented on June 19, 2024

I don't think this has been fixed yet, as long as /lib/Redisent/Redisent.php defines a RedisException class, it will still conflict with php-resque and break PHP. I'm all for renaming RedisException to RedisentException (or something similar), but at the very least can we wrap the class definition in a class_exists? i.e,

if (! class_exists('RedisException')) {
  class RedisException extends Exception {
  }
}

from php-resque.

 avatar commented on June 19, 2024

Still having the same issue here. I am also using php-redis in addition

from php-resque.

chrisboulton avatar chrisboulton commented on June 19, 2024

Above changes were merged in, which should fix this. Thanks!

from php-resque.

Related Issues (20)

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.