Set autoload to false for 'class_exists' calls. Currently it is not set, so the default is true which causes any defined '__autoload' function in the included app to be called.

This commit is contained in:
humancopy 2011-05-18 18:34:29 +02:00
parent bf29c5e018
commit cd3b0cca0e
3 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class Resque_Job
return $this->instance;
}
if(!class_exists($this->payload['class'])) {
if(!class_exists($this->payload['class'], false)) {
throw new Resque_Exception(
'Could not find job class ' . $this->payload['class'] . '.'
);

View File

@ -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 File

@ -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';
}