Skip to content

Commit a152bc9

Browse files
committed
Port pdo_mysql
1 parent fa931e3 commit a152bc9

File tree

129 files changed

+233
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+233
-132
lines changed

ext/pdo_mysql/tests/PDO_getAvaliableDrivers.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--TEST--
22
public static array PDO::getAvailableDrivers ( void );
33
array pdo_drivers ( void );
4-
--SKIPIF--
5-
<?php require 'skipif.inc'; ?>
4+
--EXTENSIONS--
5+
pdo_mysql
66
--CREDITS--
77
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
88
--FILE--

ext/pdo_mysql/tests/bug41125.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #41125 (PDO mysql + quote() + prepare() can result in seg fault)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89

ext/pdo_mysql/tests/bug44327.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #44327 (PDORow::queryString property & numeric offsets / Crash)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
$db = MySQLPDOTest::factory();

ext/pdo_mysql/tests/bug46292.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #46292 (PDO::setFetchMode() shouldn't requires the 2nd arg when using FETCH_CLASSTYPE)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug53551.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #44327 (PDORow::queryString property & numeric offsets / Crash)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
$db = MySQLPDOTest::factory();

ext/pdo_mysql/tests/bug54929.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #54929 (Parse error with single quote in sql comment (pdo-mysql))
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89

ext/pdo_mysql/tests/bug63176.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #63176 (Segmentation fault when instantiate 2 persistent PDO to the same db server)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug63185.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #63185: nextRowset() ignores MySQL errors with native prepared statements
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
99
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1010
MySQLPDOTest::skip();
1111
?>

ext/pdo_mysql/tests/bug66141.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #66141 (mysqlnd quote function is wrong with NO_BACKSLASH_ESCAPES after failed query)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug66528.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #66528: No PDOException or errorCode if database becomes unavailable before
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
99
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1010
MySQLPDOTest::skip();
1111
?>

ext/pdo_mysql/tests/bug66878.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #66878: Multiple rowsets not returned unless PDO statement object is unset()
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug67004.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #67004: Executing PDOStatement::fetch() more than once prevents releasing resultset
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug68371.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
PDO MySQL Bug #38671 (PDO#getAttribute() cannot be called with platform-specific attribute names)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug70066.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #70066: Unexpected "Cannot execute queries while other unbuffered queries"
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
99
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1010
MySQLPDOTest::skip();
1111
?>

ext/pdo_mysql/tests/bug70272.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #70272 (Segfault in pdo_mysql)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug70389.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #70389 (PDO constructor changes unrelated variables)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug70862.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
MySQL Prepared Statements and BLOBs
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug71145.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #71145: Multiple statements in init command triggers unbuffered query error
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug71569.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #71569 (#70389 fix causes segmentation fault)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug75177.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
PDO MySQL Bug #75177 Type 'bit' is fetched as unexpected string
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
if (!MySQLPDOTest::isPDOMySQLnd()) die('skip only for mysqlnd');

ext/pdo_mysql/tests/bug76815.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #76815: PDOStatement cannot be GCed/closeCursor-ed when a PROCEDURE resultset SIGNAL
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug77289.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #77289: PDO MySQL segfaults with persistent connection
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug78152.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #78152: PDO::exec() - Bad error handling with multiple commands
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug79132.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #79132: PDO re-uses parameter values from earlier calls to execute()
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug79375.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Bug #79375: mysqli_store_result does not report error from lock wait timeout
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
89
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
9-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
1010
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1111
MySQLPDOTest::skip();
1212
?>

ext/pdo_mysql/tests/bug79596.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #79596 (MySQL FLOAT truncates to int some locales)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
if (!setlocale(LC_ALL, 'de_DE', 'de-DE')) die('skip German locale not available');

ext/pdo_mysql/tests/bug79872.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #79872: Can't execute query with pending result sets
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug80458.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #80458 PDOStatement::fetchAll() throws for upsert queries
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
99
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1010
MySQLPDOTest::skip();
1111
?>

ext/pdo_mysql/tests/bug80808.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #80808: PDO returns ZEROFILL integers without leading zeros
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug80908.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pdo
55
pdo_mysql
66
--SKIPIF--
77
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
98
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
109
MySQLPDOTest::skip();
1110
?>

ext/pdo_mysql/tests/bug81037.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pdo
55
pdo_mysql
66
--SKIPIF--
77
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
98
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
109
MySQLPDOTest::skip();
1110
?>

ext/pdo_mysql/tests/bug_39858.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pdo
55
pdo_mysql
66
--SKIPIF--
77
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
98
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
109
MySQLPDOTest::skip();
1110
$db = MySQLPDOTest::factory();

ext/pdo_mysql/tests/bug_41125.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #41125 (PDO mysql + quote() + prepare() can result in segfault)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89

ext/pdo_mysql/tests/bug_41997.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
PDO MySQL Bug #41997 (stored procedure call returning single rowset blocks future queries)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89

ext/pdo_mysql/tests/bug_42499.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pdo
55
pdo_mysql
66
--SKIPIF--
77
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
98
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
109

1110
MySQLPDOTest::skip();

ext/pdo_mysql/tests/bug_43371.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--TEST--
22
Bug #43371 (Memory errors in PDO constructor)
3+
--EXTENSIONS--
4+
pdo_mysql
35
--SKIPIF--
46
<?php
5-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
67
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
78
MySQLPDOTest::skip();
89
?>

ext/pdo_mysql/tests/bug_44707.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #44707 (The MySQL PDO driver resets variable content after bindParam on tiny
33
--EXTENSIONS--
44
pdo
55
pdo_mysql
6+
pdo_mysql
67
--SKIPIF--
78
<?php
8-
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
99
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
1010

1111
MySQLPDOTest::skip();

0 commit comments

Comments
 (0)