Fix undefined left shift in oci

The bit is shifted into the signed bit which is undefined. Make the
integer explicitly unsigned before shifting.
This commit is contained in:
Ilija Tovilo 2022-09-07 22:55:28 +02:00
parent d5373eac46
commit aa7f4497bf
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -103,7 +103,7 @@ extern zend_class_entry *oci_coll_class_entry_ptr;
* PHP_OCI_CRED_EXT must be distinct from the OCI_xxx privilege * PHP_OCI_CRED_EXT must be distinct from the OCI_xxx privilege
* values. * values.
*/ */
#define PHP_OCI_CRED_EXT (1<<31) #define PHP_OCI_CRED_EXT (1u<<31)
#if ((PHP_OCI_CRED_EXT == OCI_DEFAULT) || (PHP_OCI_CRED_EXT & (OCI_SYSOPER | OCI_SYSDBA))) #if ((PHP_OCI_CRED_EXT == OCI_DEFAULT) || (PHP_OCI_CRED_EXT & (OCI_SYSOPER | OCI_SYSDBA)))
#error Invalid value for PHP_OCI_CRED_EXT #error Invalid value for PHP_OCI_CRED_EXT
#endif #endif