[BUGFIX] Undefined constant OCI_COMMIT_ON_SUCCESS 23/54923/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 18:43:38 +0000 (19:43 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 3 Dec 2017 19:09:25 +0000 (20:09 +0100)
commitdb0607da1b1bb36079111ee780157af74bf9b669
tree68a766c8cc02e5c324992dc7d6641e8f8829e5c1
parentecb9e856bc33fc337b8cb1ffc104632ec1565d58
[BUGFIX] Undefined constant OCI_COMMIT_ON_SUCCESS

Test suite on core v7 with PHP 7.2 complains a lot about
"Undefined constant OCI_COMMIT_ON_SUCCESS". This is
found in the adodb oracle oci8 driver, used as property
default value and thus evaluated as soon as the driver class
is instantiated in tests.
The test suite does not include oci8 in php. The php module
sets constant OCI_COMMIT_ON_SUCCESS to hex '0x20' which is
32 in decimal.
The patch uses decimal 32 to suppress the warning if
oci8 module is not loaded for tests.

Change-Id: I218e9758fe8b1bf8a92a8398f6782faa4ed4c9c9
Resolves: #83209
Releases: 7.6
Reviewed-on: https://review.typo3.org/54923
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/adodb/adodb/drivers/adodb-oci8.inc.php