PHP 4.0 Bug #7107: Bug with changing session name

From: Date: Mon, 09 Oct 2000 23:56:03 +0000
Subject: PHP 4.0 Bug #7107: Bug with changing session name
Groups: php.dev 
Request: Send a blank email to php-dev+get-34536@lists.php.net to get a copy of this message
From: richard.heyes@heyes-computing.net Operating system: RHL6.1, Apache 1.3.12 PHP version: 4.0.2 PHP Bug Type: *Session related Bug description: Bug with changing session name 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' -- Edit Bug report at: http://bugs.php.net/?id=7107&edit=1

« previous php.dev (#34536) next »