Skip to content

Commit 5febd63

Browse files
committed
Accept unsigned instead of enum pdo_attribute_type
Driver-specific options get passed to these functions, which are not part of the pdo_attribute_type enum. Newer GCC versions don't like that. Accept a simple integr type instead.
1 parent bc1d7b6 commit 5febd63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo/php_pdo_driver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ enum pdo_null_handling {
199199
};
200200

201201
/* {{{ utils for reading attributes set as driver_options */
202-
static inline zend_long pdo_attr_lval(zval *options, enum pdo_attribute_type option_name, zend_long defval)
202+
static inline zend_long pdo_attr_lval(zval *options, unsigned option_name, zend_long defval)
203203
{
204204
zval *v;
205205

@@ -208,7 +208,7 @@ static inline zend_long pdo_attr_lval(zval *options, enum pdo_attribute_type opt
208208
}
209209
return defval;
210210
}
211-
static inline zend_string *pdo_attr_strval(zval *options, enum pdo_attribute_type option_name, zend_string *defval)
211+
static inline zend_string *pdo_attr_strval(zval *options, unsigned option_name, zend_string *defval)
212212
{
213213
zval *v;
214214

0 commit comments

Comments
 (0)