Skip to content

Commit 6c1170e

Browse files
committed
Allow compiling with PHP 8.2
1 parent 942bea0 commit 6c1170e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

php_oci8_int.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@
5353
/* }}} */
5454

5555
#include "ext/standard/php_string.h"
56+
#if PHP_MAJOR_VERSION > 8 || (PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION > 2)
5657
ZEND_DIAGNOSTIC_IGNORED_START("-Wstrict-prototypes")
58+
#endif
5759
#include <oci.h>
60+
#if PHP_MAJOR_VERSION > 8 || (PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION > 2)
5861
ZEND_DIAGNOSTIC_IGNORED_END
62+
#endif
5963

6064
#if !defined(OCI_MAJOR_VERSION) || OCI_MAJOR_VERSION < 11 || ((OCI_MAJOR_VERSION == 11) && (OCI_MINOR_VERSION < 2))
6165
#error This version of PHP OCI8 requires Oracle Client libraries from 11.2 or later.

0 commit comments

Comments
 (0)