php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55664
Patch pdo_firebird-rowCount_test_fix revision 2011-09-10 08:35 UTC by lester at lsces dot co dot uk

Patch pdo_firebird-rowCount_test_fix for PDO related Bug #55664

Patch version 2011-09-10 08:35 UTC

Return to Bug #55664 | Download this patch
Patch Revisions:

Developer: lester@lsces.co.uk

# HG changeset patch
# User Lester Caine <lester@lsces.co.uk>
# Date 1315643175 -3600
# Branch PHP_5_3
# Node ID d3fd03ea838a95ca344db8f28cd0d2017399d134
# Parent  73985ec4b6723b840f269b786e35e0ec09a7dbb0
Using generic driver while testing pdo driver is causing problems
when trying to delete database. This would be better designed using
the same arrangements as the other pdo tests.

diff -r 73985ec4b672 -r d3fd03ea838a ext/pdo_firebird/tests/rowCount.phpt
--- a/ext/pdo_firebird/tests/rowCount.phpt	Sat Sep 10 08:51:23 2011 +0100
+++ b/ext/pdo_firebird/tests/rowCount.phpt	Sat Sep 10 09:26:15 2011 +0100
@@ -38,6 +38,8 @@
 
 $dbh->exec('DROP TABLE testz');
 
+$dbh->commit();
+
 unset($dbh);
 
 ?>
diff -r 73985ec4b672 -r d3fd03ea838a ext/pdo_firebird/tests/testdb.inc
--- a/ext/pdo_firebird/tests/testdb.inc	Sat Sep 10 08:51:23 2011 +0100
+++ b/ext/pdo_firebird/tests/testdb.inc	Sat Sep 10 09:26:15 2011 +0100
@@ -30,5 +30,5 @@
 	ibase_drop_db($r);
 }
 
-register_shutdown_function('cleanup_db');
+//register_shutdown_function('cleanup_db');
 init_db();
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 16:01:31 2024 UTC