Bug #67307 [Opn->Nab]: Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation

From: Date: Tue, 20 May 2014 09:54:21 +0000
Subject: Bug #67307 [Opn->Nab]: Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185870@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67307&edit=1 ID: 67307 Updated by: dmitry@php.net Reported by: dmitry@php.net Summary: Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation -Status: Open +Status: Not a bug Type: Bug Package: PDO SQLite Operating System: * PHP Version: master-Git-2014-05-20 (Git) Block user comment: N Private report: N New Comment: it's probably my mistake, however PDO behaviour is really wired Previous Comments: ------------------------------------------------------------------------ [2014-05-20 09:45:02] dmitry@php.net Description: ------------ The test provides invalid expectation and hides the real problem. for some reason the second assignment statement changes the value of $bar. It's done not on purpose. $bar = new PDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true)); $baz = new MyPDO("sqlite::memory:", null, null, array(PDO::ATTR_PERSISTENT => true)); var_dump($bar); // Prints object(MyPDO) instead of object(PDO) the bug and test are fixed in phpng. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67307&edit=1

« previous php.bugs (#185870) next »