note 120283 added to function.session-set-save-handler

From: Date: Wed, 07 Dec 2016 03:11:10 +0000
Subject: note 120283 added to function.session-set-save-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-208239@lists.php.net to get a copy of this message
I am encountering error: SQL query: class SESSION { FUNCTION __construct( ){session_set_save_handler( array( $this, 'open' ), array( $this, 'close' ), array( $this, 'read' ), array( $this, 'write' ), array( $this, 'destroy' ), array( $this, 'gc' )); MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'class session { function __construct() { session_set_save_handler(array($t' at line 1 My sql: Run SQL query/queries on database class session { function __construct() { session_set_save_handler(array($this, 'open'), array($this, 'close'), array($this, 'read'), array($this, 'write'), array($this, 'destroy'), array($this, 'gc')); register_shutdown_function('session_write_close'); } Note: I've done research about MySQL Error 1064 and went to different site including: http://stackoverflow.com/questions/13963811/session-set-save-handler-not-setting I am unable to fix the problem and I need help ---- Server IP: 72.52.91.14 Probable Submitter: 99.224.248.130 ---- Manual Page -- http://php.net/manual/en/function.session-set-save-handler.php Edit -- https://master.php.net/note/edit/120283 Del: integrated -- https://master.php.net/note/delete/120283/integrated Del: useless -- https://master.php.net/note/delete/120283/useless Del: bad code -- https://master.php.net/note/delete/120283/bad+code Del: spam -- https://master.php.net/note/delete/120283/spam Del: non-english -- https://master.php.net/note/delete/120283/non-english Del: in docs -- https://master.php.net/note/delete/120283/in+docs Del: other reasons-- https://master.php.net/note/delete/120283 Reject -- https://master.php.net/note/reject/120283 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208239) next »