php-5.3.3-macropen
authorDebian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Sat, 2 May 2015 08:26:55 +0000 (10:26 +0200)
committerOndřej Surý <ondrej@debian.org>
Thu, 18 Dec 2025 21:19:25 +0000 (22:19 +0100)
Gbp-Pq: Name 0016-php-5.3.3-macropen.patch

ext/dba/dba.c
ext/dba/dba_db3.c
ext/dba/dba_db4.c

index 29e996e4f32075b79f2c2e1114f815204f0f63fb..d22f7d6add73426d198526792c0bafc1ed6e3097 100644 (file)
@@ -937,7 +937,7 @@ restart:
                }
        }
 
-       if (error || hptr->open(connection->info, &error) == FAILURE) {
+       if (error || (hptr->open)(connection->info, &error) == FAILURE) {
                if (EXPECTED(!EG(exception))) {
                        if (error) {
                                php_error_docref(NULL, E_WARNING, "Driver initialization failed for handler: %s: %s", hptr->name, error);
index 8efc8d45b3ba0353735d19c4e8d75748e04b5b6d..a59121eb5f036d20efd52cc1d2c600319f22bc6d 100644 (file)
@@ -81,9 +81,9 @@ DBA_OPEN_FUNC(db3)
            dbp->set_errcall(dbp, php_dba_db3_errcall_fcn);
                if(
 #if (DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))
-                       (err=dbp->open(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
+                       (err=(dbp->open)(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
 #else
-                       (err=dbp->open(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
+                       (err=(dbp->open)(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
 #endif
                        dba_db3_data *data;
 
index f64db5540ee930d4be984553200d8fb1d7577ae5..5798fb10089af4b8ebd095eef55d7ff34b461f04 100644 (file)
@@ -110,9 +110,9 @@ DBA_OPEN_FUNC(db4)
            dbp->set_errcall(dbp, php_dba_db4_errcall_fcn);
            if (
 #if (DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))
-                       (err=dbp->open(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
+                       (err=(dbp->open)(dbp, 0, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
 #else
-                       (err=dbp->open(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
+                       (err=(dbp->open)(dbp, ZSTR_VAL(info->path), NULL, type, gmode, filemode)) == 0) {
 #endif
                        dba_db4_data *data;