pluf2

pluf2 Commit Details


Date:2009-07-10 03:10:11 (15 years 5 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:de454c77a52b2a7e07f5003b94478e0cfbfb5190
Parents: 32cde71cd010739aef3e5ddff01efb5ec5501dfc
Message:Added a more radical error when the autoload of a class is failing in debug mode.

Changes:

File differences

src/Pluf.php
175175
176176
177177
178
178
179
180
181
179182
180183
181184
......
330333
331334
332335
336
337
338
339
333340
334341
335342
$file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
include $file;
if (!class_exists($class, false)) {
throw new Exception('Impossible to load the class: '.$class);
$error = 'Impossible to load the class: '.$class."\n".
'Tried to include: '.$file."\n".
'Include path: '.get_include_path();
throw new Exception($error);
}
}
try {
Pluf::loadClass($class_name);
} catch (Exception $e) {
if (Pluf::f('debug')) {
print $e->getMessage();
die();
}
eval("class $class_name {
function __construct() {
throw new Exception('Class $class_name not found');

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05400s using 13 queries.