HTTP_Session2 - suggested improvement

From: Date: Wed, 13 Apr 2005 19:43:25 +0000
Subject: HTTP_Session2 - suggested improvement
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18735@lists.php.net to get a copy of this message
So that HTTP_Session2 can be configued via an INI file, I would advise changing the DB __construct() method to allow a string based DNS tobe parse rather then an just array based one.... public function __construct($options) { $this->options['table'] = $options['table']; $this->options['dsn'] = "{$options['dsn']... snipped... } could become.. public function __construct($options) { $this->options['table'] = $options['table']; if (is_array($options['dns']){ $this->options['dsn'] = "{$options['dsn']... snipped... } else { $this->optoins['dsn'] = $options['dsn']; } } Kind Regards, Ian

Attachment: [application/pgp-signature]
« previous php.pear.general (#18735) next »