[ php-blog-Bugs-1763271 ] Incorrect version of PHP suuported

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #1763271, was opened at 2007-07-29 22:06
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1763271&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Accepted
>Priority: 7
Private: No
Submitted By: David Newcomb (davidnewcomb)
>Assigned to: Garvin Hicking (garvinhicking)
Summary: Incorrect version of PHP suuported

Initial Comment:
All the documentation says that Serendipity supports >= 4.1.2.

I am using 4.2.2 and it on loading the first page it reports:

Fatal error: Call to undefined function: session_regenerate_id() in /var/www/html/serendipity/serendipity_config.inc.php on line 11

The PHP manual states that this function only came in at PHP 4 >= 4.3.2, PHP 5.


You must either raise the minimum PHP version or use an function_exists and create something that does the same job.

----------------------------------------------------------------------

>Comment By: Garvin Hicking (garvinhicking)
Date: 2007-07-30 08:41

Message:
Logged In: YES 
user_id=473563
Originator: NO

Hi! Thanksfor pointing this out! I believe the regenerate_id and sha1 only
were used in s9y 1.2 versions.But either way, raising the PHP4 dependency
should be the better way to go. PHP below 4.3.x is really considered
insecure in some ways, and thus we should give users another reason to get
their hoster to upgrade. :)

Adding BC-compatibility function code can't easily done for the
regenerate_id() call, because at that point our function layers are not yet
loaded.:(

Best regards,
Garvin

----------------------------------------------------------------------

Comment By: David Newcomb (davidnewcomb)
Date: 2007-07-29 22:42

Message:
Logged In: YES 
user_id=762346
Originator: YES

Similarly: sha1 which is PHP 4 >= 4.3.0, PHP 5, PECL hash:1.1-1.3

I changed it to md5 instead which seemed to work - So far ;)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1763271&group_id=75065

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.