Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002828 [Quercus] minor always 08-07-08 18:35 08-14-08 10:38
Reporter nam View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.1 Product Version 3.2.1
  Product Build
Summary 0002828: DotClear 2 doesn't work (spl_autoload_register())
Description (rep by ebourg)

I tried to install Dotclear 2 on Quercus but it fails with the following error:

quercus-3.1.6/dotclear/inc/clearbricks/common/_main.php:66: Fatal Error: no matching class dt

It seems Quercus doesn't like the way Dotclear includes the class files:


# Autoload
$__autoload = array(
'crypt' => dirname(__FILE__).'/lib.crypt.php',
'dt' => dirname(__FILE__).'/lib.date.php',
'files' => dirname(__FILE__).'/lib.files.php',
'path' => dirname(__FILE__).'/lib.files.php',
'form' => dirname(__FILE__).'/lib.form.php',
'formSelectOption' => dirname(__FILE__).'/lib.form.php',
'html' => dirname(__FILE__).'/lib.html.php',
'http' => dirname(__FILE__).'/lib.http.php',
'text' => dirname(__FILE__).'/lib.text.php'
);
# autoload for clearbricks
function cb_autoload($name)
{
global $__autoload;
if (isset($__autoload[$name])) {
require_once $__autoload[$name];
}
}
# if php version >= 5.1.2, we can benefit from spl_autoload_register,
# so other libraries can define their own independent autoload too
if (function_exists("spl_autoload_register")) {
spl_autoload_register("cb_autoload");
} else {
# otherwise we define a classic autoload function for older php...
function __autoload($name) {
cb_autoload($name);
}
}
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003330)
nam
08-14-08 10:38

php/0977
 

- Issue History
Date Modified Username Field Change
08-07-08 18:35 nam New Issue
08-14-08 10:37 nam Status new => assigned
08-14-08 10:37 nam Assigned To  => nam
08-14-08 10:38 nam Status assigned => closed
08-14-08 10:38 nam Note Added: 0003330
08-14-08 10:38 nam Resolution open => fixed
08-14-08 10:38 nam Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker