Skip to content

Commit cd3b0cc

Browse files
committed
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.
1 parent bf29c5e commit cd3b0cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Resque/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getInstance()
142142
return $this->instance;
143143
}
144144

145-
if(!class_exists($this->payload['class'])) {
145+
if(!class_exists($this->payload['class'], false)) {
146146
throw new Resque_Exception(
147147
'Could not find job class ' . $this->payload['class'] . '.'
148148
);

lib/Resque/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
4-
if(!class_exists('Redisent')) {
4+
if(!class_exists('Redisent', false)) {
55
require_once dirname(__FILE__) . '/../Redisent/Redisent.php';
66
}
77

lib/Resque/RedisCluster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// Third- party apps may have already loaded Resident from elsewhere
33
// so lets be careful.
4-
if(!class_exists('RedisentCluster')) {
4+
if(!class_exists('RedisentCluster', false)) {
55
require_once dirname(__FILE__) . '/../Redisent/RedisentCluster.php';
66
}
77

0 commit comments

Comments
 (0)