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