Skip to content

ext/oci8/tests/pecl_bug16035.phpt: test failure  #6

@orlitzky

Description

@orlitzky

Description

If I build PHP on Gentoo with,

ORACLE_HOME=/usr/lib64/oracle/client LDPATH=/usr/lib64/oracle/client/lib64 ./configure --disable-all --enable-cli --enable-pdo --with-pdo-oci --with-oci8

and then run this test, it fails,

$ sapi/cli/php -n ./run-tests.php -n ext/oci8/tests/pecl_bug16035.phpt
...
Running selected tests.
FAIL PECL Bug #16035 (Crash with Oracle 10.2 connecting with a character set but ORACLE_HOME is not set) [ext/oci8/tests/pecl_bug16035.phpt] 

The actual/expected diff is,

$ cat ext/oci8/tests/pecl_bug16035.diff 
001- Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and %s are set and point to the right directories in %s on line %d
001+ Warning: oci_connect(): Invalid character set name: jkl in /home/mjo/src/php-src/ext/oci8/tests/pecl_bug16035.php on line 3
     
003- Warning: oci_connect(): Error while trying to retrieve text for error ORA-01804
004-  in %specl_bug16035.php on line %d
003+ Warning: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in /home/mjo/src/php-src/ext/oci8/tests/pecl_bug16035.php on line 3

This is with v21.3.0.0.0 of the instantclient.

PHP Version

git HEAD

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions