Please test this package against PHP 5.0.1. If the package works, please add a comment to this bug to say that the package works, and close this bug as 'RESOLVED INVALID'. If the package does not work, please add a blocker against 'virtual/php' (for dev-php/php) or 'virtual/httpd-php' (for mod_php or php-cgi) as appropriate, and close this bug as 'RESOLVED FIXED'. Thanks, Stu
I just tried to install dotproject with dev-php/php-5.0.3 and dev-php/mod_php-5.0.3. When I try to access the webpage I get "Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /var/www/localhost/htdocs/dotproject/classes/dp.class.php on line 98", which seems to be caused by dotproject not supporting PHP 5 correctly. I found the following page that indicates that support for PHP 5 is not planned at all: http://www.dotproject.net/modules.php?op=modload&name=News&file=article&sid=31&mode=thread&order=0&thold=0 I don't think there is a problem with php or mod_php, therefore I keep this bug open with a different title. I have no clue how much effort it would be to create a patch, but for now the dotproject-ebuild should be changed to depend on <php-5.0.0.
I did some more research and found the following thread that seems to have a (partial) patch that makes it work: http://www.dotproject.net/index.php?name=PNphpBB2&file=viewtopic&t=1071&highlight=php+5 -------------- begin quote ---------------------- I found that if your rename the function in dp.class.php from clone() to something else, and then do the same in tasks.class.php it works fine on PHP5 installs. I haven't gone through every nook and cranny, but I am able to log into the site now. dp.class.php approx line number 98 " function sw_clone() {" tasks.class.php approx line number 165 "$newObj = $this->sw_clone();" EDIT: I found that I had to change ui.class.php approx line number 647 from function CTabBox( $baseHRef='', $baseInc='', $active=0 ) { to function CTabBox_core( $baseHRef='', $baseInc='', $active=0 ) { -------------- end quote ----------------------
Per UPSTREAM, does not work with PHP5.