Re: Apache child process segmentation fault ... when using LOB->load( )

From: Date: Thu, 06 Jul 2000 11:09:11 +0000
Subject: Re: Apache child process segmentation fault ... when using LOB->load( )
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-892@lists.php.net to get a copy of this message
there's bug in the clob-load code when not using a single-byte encoding. is that what your are using? i'm working on it... tc On Wed, Jul 05, 2000 at 10:55:40AM +0800, Jackie Chen (???x??) wrote: > 1 When apache/php execute the following program to the line > 2 $field = $field->load(); > 3 error occurs and the messages in error_log of apache is > 4 [Wed Jul 5 10:17:22 2000] [notice] child pid 27719 exit signal > 5 Segmentation Fault (11) > > If I remark this line, everything will be ok. The Note > column will > displays the word "Object". > > What's the problem ?? > I am using : Apache 1.3.12/PHP 3.0.16/Oracle 8.1.5 > > 1 <?php > 2 $conn = OCILogon("jackie","xxxx","ora"); > 3 // Show the content of table ex2. > 4 $stmt = OCIParse($conn, "select service, note from ex2"); > 5 OCIExecute($stmt,OCI_DEFAULT); > 6 print("<table border=1 width=100% >"); > 7 print("<tr>"); > 8 for ( $nrow=1; $nrow<=OCINumCols($stmt); $nrow++) > 9 { > 10 print("<th>"); > 11 print(OCIColumnName($stmt, $nrow)); > 12 } > 13 while(OCIFetch($stmt)) > 14 { > 15 print("<tr>"); > 16 for ( $nrow=1; $nrow<=OCINumCols($stmt); $nrow++ ) > 17 { > 18 print("<td>"); > 19 $field = OCIResult($stmt, $nrow); > 20 if(is_object($field)) > 21 $field = $field->load(); > 22 print($field); > 23 } > 24 } > 25 print("</table>"); > 26 OCIFreeDescriptor($lob); > 27 OCIFreeStatement($stmt); > 28 OCILogoff($conn); > 29 ?> > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.db (#892) next »