|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 08:35 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
Hi, there seems to be a weird bug regarding OCIFetch(Into). Here's my PHP script: === start <html> <head> <title>PHP Test</title> </head> <body> <TABLE CELLPADDING=5 BORDER=1> <TR> <TH>Alias</TH> <TH>Full Name</TH> </TR> <?php PutEnv("ORACLE_HOME=/usr/local/oracle"); PutEnv("ORACLE_SID=KIM"); $conn = OCILogon("web", "web", "KIM"); $stmt = OCIParse($conn, "select a, b from bla"); OCIExecute($stmt); while (@OCIFetchInto($stmt, &$arrResult, OCI_ASSOC)) { echo '<TR><TD>', $arrResult["A"], '</TD><TD>', $arrResult["B"], '</TD></TR>'; } OCIFreeStatement($stmt); OCILogOff($conn); ?> </table> <FORM ACTION="insert.php3" METHOD="post"> <TABLE><TR> <TH>Alias:</TH><TD><INPUT TYPE="text" SIZE=20 NAME="alias"></TD></TR> <TH>Fullname:</TH><TD><INPUT TYPE="text" SIZE=20 NAME="fullname"></TD></TR> <TR><TD COLSPAN=2><INPUT TYPE="submit" NAME="OK"></TD></TR> </TABLE> </form> </body> </html> === end This is the result: === start Content-type: text/html <html> <head> <title>PHP Test</title> </head> <body> <TABLE CELLPADDING=5 BORDER=1> <TR> <TH>Alias</TH> <TH>Full Name</TH> </TR> Speicherzugriffsfehler === end As soon as I comment this line while (@OCIFetchInto($stmt, &$arrResult, OCI_ASSOC)) { out, there's no error anymore. I configured php using ./configure --with-oracle=/usr/local/oracle --enable-track-vars (cgi version - the oracle dir is correct!) The compilation worked without errors. When I try to open the doc using Netscape, it says 'Document contains no data.' Thanks, - Steffen