Doc #61330 [Opn->Csd]: Typo in session_set_save_handler example#2

From: Date: Thu, 08 Mar 2012 21:55:04 +0000
Subject: Doc #61330 [Opn->Csd]: Typo in session_set_save_handler example#2
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8039@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61330&edit=1 ID: 61330 Updated by: salathe@php.net Reported by: jlefaive at gmail dot com Summary: Typo in session_set_save_handler example#2 -Status: Open +Status: Closed Type: Documentation Problem -Package: *General Issues +Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: salathe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2012-03-08 21:53:44] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=324030 Log: fixed wrong variable name in session handler examples (doc #61330) ------------------------------------------------------------------------ [2012-03-08 19:15:18] jlefaive at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.session-set-save-handler --- The write() method in example #2 has a typo. >>function write($id, $data){ >> return file_put_contents("$savePath/sess_$id", $data) === false ? false : true; >>} should be: function write($id, $data){ return file_put_contents("$this->savePath/sess_$id", $data) === false ? false : true; } // missing "this->" in call to file_put_contents ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61330&edit=1

« previous php.doc.bugs (#8039) next »