-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6713507
commit a40fe0b
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
config/patches/8.5/0045-ext-pdo_firebird-Fix-label-follow-by-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From bcb7dadc34e68c6457d56e1c43df61597dfdfc76 Mon Sep 17 00:00:00 2001 | ||
From: Shivam Mathur <[email protected]> | ||
Date: Sat, 21 Dec 2024 08:02:11 +0000 | ||
Subject: [PATCH] ext/pdo_firebird: Fix label follow by declaration | ||
|
||
A label should be followed by a statement and not a declaration, else old gcc gives the following error: a label can only be part of a statement and a declaration is not a statement | ||
|
||
To fix this we add a ; after the case label before the declaration. | ||
--- | ||
ext/pdo_firebird/firebird_statement.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c | ||
index 910b325112..eacb6f5d59 100644 | ||
--- a/ext/pdo_firebird/firebird_statement.c | ||
+++ b/ext/pdo_firebird/firebird_statement.c | ||
@@ -886,7 +886,7 @@ static int pdo_firebird_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zva | ||
switch (attr) { | ||
default: | ||
return 0; | ||
- case PDO_ATTR_CURSOR_NAME: | ||
+ case PDO_ATTR_CURSOR_NAME: ; | ||
zend_string *str_val = zval_try_get_string(val); | ||
if (str_val == NULL) { | ||
return 0; | ||
-- | ||
2.47.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters