Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60476 - net-www/dotproject does not work with PHP 5
Summary: net-www/dotproject does not work with PHP 5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2004-08-15 14:15 UTC by Stuart Herbert (RETIRED)
Modified: 2005-07-07 12:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Herbert (RETIRED) gentoo-dev 2004-08-15 14:15:23 UTC
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
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2004-12-29 01:13:48 UTC
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.
Comment 2 Dominik Stadler (RETIRED) gentoo-dev 2004-12-29 01:18:03 UTC
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 ----------------------
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2005-07-07 12:57:53 UTC
Per UPSTREAM, does not work with PHP5.