[PHP-DEV] Bug #1277: OCIDefineByName() causes Apache crash From: pumuckel <email protected>
Date: 03/28/99

From: pumuckel <email protected>
Operating system: Linux 2.0.36
PHP version: 3.0.7
PHP Bug Type: Oracle related
Bug description: OCIDefineByName() causes Apache crash

OCIDefineByName($stmt, "TITLE", &$topic) causes apache to crash.

My table looks like:

CREATE TABLE TESTTABLE
(
        test1 VARCHAR(150) PRIMARY KEY,
        test2 VARCHAR(50),
        test3 VARCHAR(50),
        title VARCHAR(255),
        test4 VARCHAR(255),
        .....
)
TABLESPACE SPACE;

The statement is:
OCIParse($conn, "SELECT test1,test2,test3,TITLE FROM TESTTABLE WHERE TEST1 LIKE 'A%'");

Then I call following OCI methods:
OCIDefineByName($stmt, "TEST1", &$test1);
OCIDefineByName($stmt, "TEST2", &$test2);
OCIDefineByName($stmt, "TEST3", &$test3);
OCIDefineByName($stmt, "TITLE", &$title);

On LAST OciDefineByName apache crashes. This is reproducable. If I comment out last OCI command, the rest of php3 commands are executed successfully.

(I'm running Apache_1.3.4)

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>