com php-src: Accept unsigned instead of enum pdo_attribute_ type: ext/pdo/php_pdo_driver.h

From: Date: Wed, 22 Jul 2020 16:28:22 +0000
Subject: com php-src: Accept unsigned instead of enum pdo_attribute_ type: ext/pdo/php_pdo_driver.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112318@lists.php.net to get a copy of this message
Commit: 5febd633b97fc6399368d36df639c8b5f218f0c8 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 22 Jul 2020 18:26:40 +0200 Parents: bc1d7b604056ecae9ec126979200f56987b71f9a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5febd633b97fc6399368d36df639c8b5f218f0c8 Log: 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. Changed paths: M ext/pdo/php_pdo_driver.h Diff: diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 2fd3b00e99..834b3b0bf7 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -199,7 +199,7 @@ enum pdo_null_handling { }; /* {{{ utils for reading attributes set as driver_options */ -static inline zend_long pdo_attr_lval(zval *options, enum pdo_attribute_type option_name, zend_long defval) +static inline zend_long pdo_attr_lval(zval *options, unsigned option_name, zend_long defval) { zval *v; @@ -208,7 +208,7 @@ static inline zend_long pdo_attr_lval(zval *options, enum pdo_attribute_type opt } return defval; } -static inline zend_string *pdo_attr_strval(zval *options, enum pdo_attribute_type option_name, zend_string *defval) +static inline zend_string *pdo_attr_strval(zval *options, unsigned option_name, zend_string *defval) { zval *v;

« previous php.cvs (#112318) next »