Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set autoload to false for 'class_exists' calls. Currently it is not s…

…et, so the default is true which causes any defined '__autoload' function in the included app to be called.
  • Loading branch information...
commit cd3b0cca0eb4f9be6d5f4629b65679834ae59d3d 1 parent bf29c5e
@humancopy authored
View
2  lib/Resque/Job.php
@@ -142,7 +142,7 @@ public function getInstance()
return $this->instance;
}
- if(!class_exists($this->payload['class'])) {
+ if(!class_exists($this->payload['class'], false)) {

I'm not sure if we want to disable autoloading here - if your app is to handle the autoloading of job classes on demand for you, this would break that?

Other two occurrences are fine though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
throw new Resque_Exception(
'Could not find job class ' . $this->payload['class'] . '.'
);
View
2  lib/Resque/Redis.php
@@ -1,7 +1,7 @@
<?php
// Third- party apps may have already loaded Resident from elsewhere
// so lets be careful.
-if(!class_exists('Redisent')) {
+if(!class_exists('Redisent', false)) {
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
}
View
2  lib/Resque/RedisCluster.php
@@ -1,7 +1,7 @@
<?php
// Third- party apps may have already loaded Resident from elsewhere
// so lets be careful.
-if(!class_exists('RedisentCluster')) {
+if(!class_exists('RedisentCluster', false)) {
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
}
Please sign in to comment.
Something went wrong with that request. Please try again.