Just some notes on running the project management system dotproject on php 5
dotproject was written for php 4. You will encounter some problems trying to run it on php 5. One of the biggest problems comes with copying objects. In php 4, one could just assign one object to another and it would make a copy. In php 5 references are used so this will no longer work. The developer is required to use the clone keyword to make a copy. If you are writing code that will need to run on both php 4 and php 5 you can use the following code as a work around
if (version_compare(phpversion(), ‘5.0′) < 0) {
eval(‘
function clone($object) {
return $object;
}
‘);
}
?>
eval(‘
function clone($object) {
return $object;
}
‘);
}
?>