Re: Bug #1165: AIX 4.2 & Oracle 8.0.4.1.0
| From: | Thies C. Arntzen | Date: | Fri, 19 Feb 1999 22:07:31 +0000 |
| Subject: | Re: Bug #1165: AIX 4.2 & Oracle 8.0.4.1.0 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4167@lists.php.net to get a copy of this message | ||
please send me the "last" 2 lines of your compile log (including the
link line)... i've been running php3 + oracle8 for some time now on AIX,
i might be able to help you!!!
tc
On 19 Feb 1999 btribit@sungard.com wrote:
> From: btribit@sungard.com
> Operating system: AIX 4.2.1.0
> PHP version: 3.0.6
> PHP Bug Type: Oracle related
> Bug description: AIX 4.2 & Oracle 8.0.4.1.0
>
> Works everywhere else. (ie. linux, solaris).
>
> # oslevel
> 4.2.1.0
> # ./configure --with-oracle=/oracle-home
> good to go
> # make
> # cat > test.html
> <HTML>
> <?php
> putenv("ORACLE_HOME=/oracle-home");
> putenv("ORACLE_OWNER=oracle");
> putenv("ORACLE_SID=testsec8");
>
> $handle = ora_logon("testing@testsec8","testing");
> $cursor = ora_open($handle);
> ora_commitoff($handle);
> $query = "select table_name from all_tables";
> ora_parse($cursor,$query) or die;
> ora_exec($cursor);
> 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";
> }
>
> ?>
> </HTML>
> <CTRL-D>
> # ./php test.html
> Content-type: text/html
>
> <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
>
> <HTML>
>
> execution completed (exit code 6)
> (dbx)
>
> 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
> Connected....
> 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.
>
>
>
> --
> PHP Development Mailing List http://www.php.net/
> To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
> For help: php-dev-help@lists.php.net
>
>
>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net