PHP 4.0 Bug #7107 Updated: Bug with changing session name

From: Date: Mon, 16 Oct 2000 18:22:22 +0000
Subject: PHP 4.0 Bug #7107 Updated: Bug with changing session name
Groups: php.dev 
Request: Send a blank email to php-dev+get-35175@lists.php.net to get a copy of this message
ID: 7107 Updated by: sas Reported By: richard.heyes@heyes-computing.net Status: Closed Bug Type: *Session related Assigned To: Comments: The proper way to change the session name is to use session_name(). If there are any other problems related to ini_set(), please file a separate bug report. Thank you. Previous Comments: --------------------------------------------------------------------------- [2000-10-09 19:56:03] richard.heyes@heyes-computing.net Whenever I change the session.name variable like this: ini_set('session.name', 'SESSIONID'); I get this intermittent error: Warning: Delimiter must not be alphanumeric or backslash in func.database.inc on line 101 The offending code on line 101 is this: if(preg_match('/^select/i', $sql)) $rows = db_num_rows($result); Although it's not limited to this code, when using the PEAR db layer it came a cropper on that too. The code there also contained a preg function. (Line 331 of DB.php IIRC) If I don't change the session.name variable, the error never happens. Configure line: './configure' '--with-apache=../httpd' '--with-mysql' '--with-ftp' '--with-config-file-path=/www/conf' '--enable-dbase' '--with-pgsql=/usr/include/pgsql' '--with-mcrypt' '--with-imap' '--enable-sockets' --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7107

« previous php.dev (#35175) next »