Persistent PDO supports

From: Date: Mon, 26 May 2014 06:34:04 +0000
Subject: Persistent PDO supports
Groups: php.internals 
Request: Send a blank email to internals+get-74476@lists.php.net to get a copy of this message
Hey: I was working on persistent PDO supports in phpng.. and you may already know this odds behavior: <?php class Foo extends PDO { } class Baz extends PDO { } $bar = new Foo("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true)); $baz = new Baz("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true)); var_dump($bar); var_dump($baz); ?> it output : object(Foo)#1 (0) { } object(Foo)#2 (0) { } which seems very odds for me... anyway after the new implementation. this has been fixed , in phpng it outputs: object(Foo)#1 (0) { } object(Baz)#2 (0) { } I am just not sure, is the previous behavior is on purpose? or any other reasons? if no. then I will leave the current fix as it is... thanks -- Laruence Xinchen Hui http://www.laruence.com/

« previous php.internals (#74476) next »