php / pecl-database-oci8

Extension to interact with Oracle databases
Other
1 stars 3 forks source link

Tests not compatible with Instant Client 23 #7

Open datadestroyd opened 1 month ago

datadestroyd commented 1 month ago

I just tried to build the OCI8 module with Instant Client 23, but I got 68 failing tests. It appears Oracle changed most/all of the error messages. They now include a help link on a separate line. Here is an example from array_bind_001.diff:

001+ Warning: oci_bind_array_by_name(): OCI-21560: argument at position 3 is null, invalid, or out of range
002+ Help: https://docs.oracle.com/error-help/db/oci-21560/ in /tmp/tmp.c3TEAcQZbp/p/oci8-2.2.0/tests/array_bind_001.php on line 48
001- Warning: oci_bind_array_by_name(): OCI-21560: argument 3 is null, invalid, or out of range in %s on line %d
cjbj commented 1 month ago

Try export ORA_SUPPRESS_ERROR_URL=TRUE

datadestroyd commented 3 weeks ago

@cjbj Thank you, that helped a lot! I am now down to 6 failing tests. Some error messages have changed slightly. I would be willing to prepare a PR to make the tests compatible with the new version.