|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1165 AIX 4.2 & Oracle
Submitted: 1999-02-19 16:02 UTC Modified: 1999-05-29 11:42 UTC
From: btribit at sungard dot com Assigned:
Status: Closed Package: Oracle related
PHP Version: 3.0.6 OS: AIX
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: btribit at sungard dot com
New email:
PHP Version: OS:


 [1999-02-19 16:02 UTC] btribit at sungard dot com
Works everywhere else. (ie. linux, solaris).

# oslevel
# ./configure --with-oracle=/oracle-home
good to go
# make
# cat > test.html

        $handle = ora_logon("testing@testsec8","testing");
        $cursor = ora_open($handle);
        $query = "select table_name from all_tables";
        ora_parse($cursor,$query) or die;
        while(ora_fetch($cursor)) {
                $numcols = ora_numcols($cursor);
                for ($column=0;$column < $numcols;$column++) {
                        $data = trim(ora_getcolumn($cursor, $column));
                        if($data == "")
                                $data =  "NULL";
                        echo "$data\t";
                echo  "<BR>\n";

# ./php test.html
Content-type: text/html



I have tried compiling it using gcc and AIX's cc. Both produce the same results. Also when using dbx...

# dbx php
(dbx) run test.html
Content-type: text/html


execution completed (exit code 6)

Obviously it is choking somewhere on the oracle code. However, all the cdemo files compile and run, etc. I am justing looking for a little help as to why it is not working. If I make php as an apache module, I get 
a "No data given" error from netscape. Further...

# telnet localhost 80
GET /test.html HTTP/1.0

Connection closed.

I am not sure what to make of it. Also, just an FYI. The perl DBD::Oracle produces a core dump on similar code. If there is a simple fix let me know. These things work everywhere else but AIX. Just wondering if anybody has run into them.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-29 11:34 UTC] thies at cvs dot php dot net
i got it working with gcc (oracle 8.0.4 and 8.0.5) on 4.2.1 with no problems, but i used --with-system-regex (and configured apache with --disable-rule-wanthsregex)

 [1999-05-29 11:41 UTC] thies at cvs dot php dot net
forgot to change the state
 [1999-05-29 11:42 UTC] thies at cvs dot php dot net
forgot to change the state
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 23:03:36 2021 UTC