From:             [EMAIL PROTECTED]
Operating system: Solaris 7 and 8
PHP version:      4.0.6
PHP Bug Type:     OCI8 related
Bug description:  Compile failure --with-oci8 and Oracle 8.0.4

Compilation failes --with-oci8 and ORACLE_HOME pointing to oracle 8.0.4
installation. A typedef and define for symbol dword is only available in
oratypes.h of newer Oracle versions (checked with 8.0.5, 8.1.5 and 8.1.7)

Solution: change dword to sb4 in ext/oci8/oci8.c, that's still matching the
oracle prototype (orl.h of oracle 8.1.7)

sword OCICollAssignElem(    OCIEnv *env, OCIError *err, sb4 index, 
                            CONST dvoid *elem, 
                            CONST dvoid *elemind, OCIColl *coll    );

gcc error:
oci8.c: In function `php_if_ocicollgetelem':
oci8.c:4480: warning: passing arg 7 of `OCIDateToText' from incompatible
pointer type
oci8.c: In function `php_if_ocicollassignelem':
oci8.c:4604: `dword' undeclared (first use in this function)
oci8.c:4604: (Each undeclared identifier is reported only once
oci8.c:4604: for each function it appears in.)
oci8.c:4604: parse error before `)'
oci8.c:4626: parse error before `)'
oci8.c:4657: parse error before `)'

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to