Bug #67307 [NEW]: Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation

From: Date: Tue, 20 May 2014 09:45:03 +0000
Subject: Bug #67307 [NEW]: Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185869@lists.php.net to get a copy of this message
From: dmitry Operating system: * PHP version: master-Git-2014-05-20 (Git) Package: PDO SQLite Bug Type: Bug Bug description:Test ext/pdo_sqlite/tests/bug43831.phpt provides invalid expectation 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 bug report at https://bugs.php.net/bug.php?id=67307&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67307&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67307&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67307&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67307&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67307&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67307&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67307&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67307&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67307&r=support Expected behavior: https://bugs.php.net/fix.php?id=67307&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67307&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67307&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67307&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67307&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67307&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67307&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67307&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67307&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67307&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67307&r=mysqlcfg

« previous php.bugs (#185869) next »