[PHP-CVS] cvs: php-src /ext/pdo_sqlite/tests bug43831.phpt pdo_sqlite_createaggregate.phpt pdo_sqlite_createfunction.phpt pdo_sqlite_lastinsertid.phpt pdo_sqlite_transaction.phpt
janiSat Apr 25 21:39:38 2009 UTC Modified files: /php-src/ext/pdo_sqlite/tests bug43831.phpt pdo_sqlite_createaggregate.phpt pdo_sqlite_createfunction.phpt pdo_sqlite_lastinsertid.phpt pdo_sqlite_transaction.phpt Log: - Added missing SKIPIF http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/bug43831.phpt?r1=1.1r2=1.2diff_format=u Index: php-src/ext/pdo_sqlite/tests/bug43831.phpt diff -u php-src/ext/pdo_sqlite/tests/bug43831.phpt:1.1 php-src/ext/pdo_sqlite/tests/bug43831.phpt:1.2 --- php-src/ext/pdo_sqlite/tests/bug43831.phpt:1.1 Fri Feb 13 02:20:31 2009 +++ php-src/ext/pdo_sqlite/tests/bug43831.phpt Sat Apr 25 21:39:37 2009 @@ -1,5 +1,7 @@ --TEST-- Bug #43831 ($this gets mangled when extending PDO with persistent connection) +--SKIPIF-- +?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ? --FILE-- ?php http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt?r1=1.2r2=1.3diff_format=u Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.2Wed Dec 3 11:00:19 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phptSat Apr 25 21:39:37 2009 @@ -1,5 +1,7 @@ --TEST-- PDO_sqlite: Testing sqliteCreateAggregate() +--SKIPIF-- +?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ? --FILE-- ?php http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt?r1=1.2r2=1.3diff_format=u Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.2 Wed Dec 3 11:00:19 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt Sat Apr 25 21:39:37 2009 @@ -1,5 +1,7 @@ --TEST-- PDO_sqlite: Testing sqliteCreateFunction() +--SKIPIF-- +?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ? --FILE-- ?php http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt?r1=1.3r2=1.4diff_format=u Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.3 php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.4 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.3 Mon Mar 23 23:03:08 2009 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt Sat Apr 25 21:39:37 2009 @@ -1,5 +1,7 @@ --TEST-- PDO_sqlite: Testing lastInsertId() +--SKIPIF-- +?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ? --FILE-- ?php http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt?r1=1.2r2=1.3diff_format=u Index: php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt diff -u php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt:1.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt:1.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt:1.2Wed Dec 3 11:00:19 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phptSat Apr 25 21:39:37 2009 @@ -1,5 +1,7 @@ --TEST-- PDO_sqlite: Testing transaction +--SKIPIF-- +?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ? --FILE-- ?php -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] cvs: php-src /ext/pdo_sqlite/tests bug43831.phpt
felipe Fri Feb 13 02:20:31 2009 UTC Added files: /php-src/ext/pdo_sqlite/tests bug43831.phpt Log: - New test http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/bug43831.phpt?view=markuprev=1.1 Index: php-src/ext/pdo_sqlite/tests/bug43831.phpt +++ php-src/ext/pdo_sqlite/tests/bug43831.phpt --TEST-- Bug #43831 ($this gets mangled when extending PDO with persistent connection) --FILE-- ?php class Foo extends PDO { function __construct($dsn) { parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT = true)); } } class Baz extends PDO { function __construct($dsn) { parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT = true)); } } class Bar extends Baz { function quux() { echo get_class($this), \n; $foo = new Foo(sqlite::memory:); echo get_class($this), \n; } } $bar = new Bar(sqlite::memory:); $bar-quux(); class MyPDO extends PDO {} $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); unset($bar); var_dump($baz); var_dump($bar); ? --EXPECTF-- Bar Bar object(MyPDO)#%d (0) { } object(MyPDO)#%d (0) { } Notice: Undefined variable: bar in %s on line %d NULL -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php