When installing SVN access manager 0.5.5.4 on a Red Hat EL 5 server running Apache 2.2.3, PHP 5.4.2, and MySQL 5.5.23, there are issues with functions that have been removed from PHP 5.4. Specifically, the session_is_registered and session_register functions.
Also, there are database errors where attempts to insert initial values result in the insert being rejected because it does not contain a default value (example, svnuser.modified_user). The initial insert statement has no value for modified_user, which in and of itself is not a problem, however the table is created with that column being NOT NULL, yet without a DEFAULT value.
The PHP problems can be overcome by commenting out the superfluous session_register function call, which is followed by $_SESSION variable initialization. At least I think that overcomes the problem.
The other function problem is with session_is_registered. This can be overcome by using something like:
The database issues can be corrected by updating the table definitions for the affected columns and inserting DEFAULT '' in the column definition.
After you do all of the above, the installation completes.
However, when trying to login, it seems to accept the password I set for the SVN admin (svnadmin), but then it simply loops around and displays the login screen again. I know the code is getting as far as the function check_session from the main.php page, but I don't know what's happening after that.
I have little expertise in PHP, so any help would be appreciated.
thanks for testing SVN Access Manager against PHP 5.4. Honestly I must say I didn't do any tests in this direction yet. The login loop seems to be an issue regarding the session handling. As you mentioned some deprecated functions are gone and therefore you have this problem.
I have to look into php docs to see how session handling works in php 5.4. Until this time I think you should better use PHP 5.3.
you can try the most recent version of SVN Access Manager. You've to checkout this version from the repository. This version should work with PHP 5.4. Just do a
svn export https://svn-access-mana.svn.sourceforge.net/svnroot/svn-access-mana/branches/svnam-0-5
did you have time to test SVN Access Manager together with PHP 5.4? The current release should now work with PHP 5.4. Feedback would be appreciated.
Log in to post a comment.