felipe Tue Dec 2 23:06:52 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pdo_sqlite/tests pdo_sqlite_createaggregate.phpt pdo_sqlite_createfunction.phpt pdo_sqlite_lastinsertid.phpt Log: - Fixed tests http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_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.1.4.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.1.4.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt:1.1.4.2 Tue Dec 2 21:02:44 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt Tue Dec 2 23:06:52 2008 @@ -10,7 +10,9 @@ $db->query('INSERT INTO foobar VALUES (NULL, "PHP")'); $db->query('INSERT INTO foobar VALUES (NULL, "PHP6")'); -$db->sqliteCreateAggregate('testing', function(&$a, $b) { $a .= $b; return $a; }, function(&$v) { return $v; }); +function test_a(&$a, $b) { $a .= $b; return $a; } +function test_b(&$a) { return $a; } +$db->sqliteCreateAggregate('testing', 'test_a', 'test_b'); foreach ($db->query('SELECT testing(name) FROM foobar') as $row) { http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_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.1.4.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.1.4.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt:1.1.4.2 Tue Dec 2 21:02:44 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt Tue Dec 2 23:06:52 2008 @@ -11,7 +11,8 @@ $db->query('INSERT INTO foobar VALUES (NULL, "PHP6")'); -$db->sqliteCreateFunction('testing', function($v) { return strtolower($v); }); +function test($v) { return strtolower($v); } +$db->sqliteCreateFunction('testing', 'test'); foreach ($db->query('SELECT testing(name) FROM foobar') as $row) { http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_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.1.4.2 php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.1.4.3 --- php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt:1.1.4.2 Tue Dec 2 21:02:44 2008 +++ php-src/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt Tue Dec 2 23:06:52 2008 @@ -19,12 +19,8 @@ ["queryString"]=> %string|unicode%(17) "SELECT * FROM foo" } -array(3) { +array(1) { [0]=> %string|unicode%(5) "00000" - [1]=> - NULL - [2]=> - NULL } %string|unicode%(1) "2"
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php