Re: php5 rc4-6 PDO vs Sessions
| From: | Richard Thomas | Date: | Wed, 23 Nov 2005 12:28:30 +0000 |
| Subject: | Re: php5 rc4-6 PDO vs Sessions | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3262@lists.php.net to get a copy of this message | ||
Whats included in the PHP 5.1 RC6 package, althought I was using RC4 when I first ran into this problem and upgraded hoping it would fix it.
Curt Zirzow wrote:
On Tue, Nov 22, 2005 at 04:16:51PM -0600, Richard Thomas wrote:I am trying to translate Mysql based session method over to PDO and am getting some really weird results. I put a mail function to email me the serialized string and am getting savethis|i:99;twonow|a:4:{s:5:"comp1";s:5:"comp2";s:5:"comp2";s:5:"comp3";s:5:"comp3";s:5:"comp4";s:5:"comp4";s:5:"comp6";} But in the database I get savethis|i?;twonow|a?:{s?:"comp1";s?:"comp2";s?:"comp2";s?:"comp3";s?:"comp3";s?:"comp4";s?:"comp4";s?:"comp6";}This looks like pdo_mysql is thinking that :99, :4, :5, should be paramaters for a bind statement. What version of PDO are you using? Curt.