mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
d5373eac46
commit
aa7f4497bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue