At 9:41 AM -0700 29/8/01, Alan T. Miller wrote:
>I am trying to use the session4 custom in the local4.inc file from CVS.
Watch out, most of the stuff in the -devel CVS tree is still a little
rough around the edges.
>get the following error when I try to impliment a page with sessions using
>the custom storage:
>
>Warning: Missing argument 1 for ac_release_lock() in
>c:\inetpub\wwwroot\mydomain.com\php-lib\php\db\mysql\ct_sql.inc on line 42
>
>Warning: Missing argument 2 for ac_release_lock() in
>c:\inetpub\wwwroot\mydomain.com\php-lib\php\db\mysql\ct_sql.inc on line 42
This is because the ac_get_lock and ac_release_lock functions in
ct_sql.inc require two arguments:
function ac_get_lock($name, $sid) {
function ac_release_lock($name, $sid) {
yet user4.inc and session4_custom.inc all call that function with no
arguments at all:
$this->that->ac_get_lock();
$this->that->ac_release_lock();
Is it even necessary to perform locking if you're using PHP4 sessions?
I notice the calls to ac_get_lock and ac_release_lock are commented
out in session4.inc!
Post a bug to the SourceForge Bug Tracker (better yet, post a patch ;)
...Richard.
|