File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22PDO MySQL Bug #41997 (stored procedure call returning single rowset blocks future queries)
33--SKIPIF--
44<?php
5- if (!extension_loaded ('pdo ' ) || !extension_loaded ('pdo_mysql ' )) die ('skip not loaded ' );
6- require dirname (__FILE__ ) . '/config.inc ' ;
7- require dirname (__FILE__ ) . '/../../../ext/pdo/tests/pdo_test.inc ' ;
8- PDOTest::skip ();
5+ require_once (dirname (__FILE__ ) . DIRECTORY_SEPARATOR . 'skipif.inc ' );
6+ require_once (dirname (__FILE__ ) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc ' );
7+ MySQLPDOTest::skip ();
98
10- $ db = PDOTest:: test_factory ( dirname ( __FILE__ ) . ' /common.phpt ' );
9+ $ db = MySQLPDOTest:: factory ( );
1110$ row = $ db ->query ('SELECT VERSION() as _version ' )->fetch (PDO ::FETCH_ASSOC );
1211$ matches = array ();
1312if (!preg_match ('/^(\d+)\.(\d+)\.(\d+)/ismU ' , $ row ['_version ' ], $ matches ))
@@ -20,9 +19,8 @@ if ($version < 50000)
2019?>
2120--FILE--
2221<?php
23- require dirname (__FILE__ ) . '/config.inc ' ;
24- require dirname (__FILE__ ) . '/../../../ext/pdo/tests/pdo_test.inc ' ;
25- $ db = PDOTest::test_factory (dirname (__FILE__ ) . '/common.phpt ' );
22+ require dirname (__FILE__ ) . '/mysql_pdo_test.inc ' ;
23+ $ db = MySQLPDOTest::factory ();
2624
2725$ db ->exec ('DROP PROCEDURE IF EXISTS p ' );
2826$ db ->exec ('CREATE PROCEDURE p() BEGIN SELECT 1 AS "one"; END ' );
You can’t perform that action at this time.
0 commit comments