Skip to content

Commit e0de4b1

Browse files
committed
Pdo\Pgsql::setNoticeCallback()
Adapt to the space naming (Pdo\Pgsql instead of PdoPgsql)
1 parent 4b89499 commit e0de4b1

10 files changed

+14
-14
lines changed

ext/pdo_pgsql/pdo_pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ PHP_METHOD(Pdo_Pgsql, getPid)
146146
}
147147

148148
/* Sets a callback to receive DB notices (after client_min_messages has been set */
149-
PHP_METHOD(PdoPgsql, setNoticeCallback)
149+
PHP_METHOD(Pdo_Pgsql, setNoticeCallback)
150150
{
151151
zend_fcall_info fci = empty_fcall_info;
152152
zend_fcall_info_cache fcc = empty_fcall_info_cache;

ext/pdo_pgsql/pdo_pgsql_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/pdo_pgsql/pgsql_driver.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeout
3535
public function pgsqlGetPid(): int {}
3636

3737
/* Do NOT add new methods here. See https://wiki.php.net/rfc/pdo_driver_specific_subclasses
38-
* Any new feature should be declared only on PdoPgsql.
38+
* Any new feature should be declared only on Pdo\Pgsql.
3939
*/
4040
}

ext/pdo_pgsql/pgsql_driver_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/pdo_pgsql/tests/issue78621.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_once dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
33
require_once dirname(__FILE__) . '/config.inc';
44
if (!isset($db)) {
5-
$db = new PdoPgsql($config['ENV']['PDOTEST_DSN']);
5+
$db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']);
66
}
77
if (!isset($rounds) || empty($rounds)) {
88
$rounds = [ null, 'Re' ];

ext/pdo_pgsql/tests/issue78621.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PdoPgsql::setNoticeCallback catches Postgres "raise notice".
2+
Pdo\Pgsql::setNoticeCallback catches Postgres "raise notice".
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');

ext/pdo_pgsql/tests/issue78621_closure.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PdoPgsql::setNoticeCallback catches Postgres "raise notice".
2+
Pdo\Pgsql::setNoticeCallback catches Postgres "raise notice".
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');

ext/pdo_pgsql/tests/issue78621_method.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PdoPgsql::setNoticeCallback catches Postgres "raise notice".
2+
Pdo\Pgsql::setNoticeCallback catches Postgres "raise notice".
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');

ext/pdo_pgsql/tests/pdopgsql_setNoticeCallback.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PdoPgsql::setNoticeCallback()
2+
Pdo\Pgsql::setNoticeCallback()
33
--EXTENSIONS--
44
pdo
55
pdo_pgsql
@@ -14,7 +14,7 @@ PDOTest::skip();
1414

1515
require_once __DIR__ . "/config.inc";
1616

17-
$db = new PdoPgsql($config['ENV']['PDOTEST_DSN']);
17+
$db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']);
1818

1919
function disp($message) { echo trim($message)."\n"; }
2020
function attach($db, $callback) { $db->setNoticeCallback($callback); }

ext/pdo_pgsql/tests/pdopgsql_setNoticeCallback_trampoline_no_leak.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PdoPgsql::setNoticeCallback() use F ZPP for trampoline callback and does not leak
2+
Pdo\Pgsql::setNoticeCallback() use F ZPP for trampoline callback and does not leak
33
--EXTENSIONS--
44
pdo
55
pdo_pgsql
@@ -14,7 +14,7 @@ PDOTest::skip();
1414

1515
require_once __DIR__ . "/config.inc";
1616

17-
$db = new PdoPgsql($config['ENV']['PDOTEST_DSN']);
17+
$db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']);
1818

1919
function disp($message) { echo trim($message)."\n"; }
2020
function attach($db, $callback) { $db->setNoticeCallback($callback); }

0 commit comments

Comments
 (0)