ID: 33383
User updated by: johnny at ouranous dot idv dot tw
Reported By: johnny at ouranous dot idv dot tw
-Status: Feedback
+Status: Open
Bug Type: OCI8 related
Operating System: Solaris 9
PHP Version: 5.0.4
Assigned To: tony2001
New Comment:
Description:
------------
Crashed where clob field contains no data.
Reproduce code:
---------------
<?php
if (!extension_loaded('oci8'))
{
dl('oci8.so');
}
$db_connect_id = OCINLogon( "username", "passwd", "dbserver" );
$query = SELECT guid,objcontent FROM objectcontent WHERE rownum < 10";
$stmt = OCIParse ($db_connect_id, $query);
OCIExecute($stmt, OCI_DEFAULT);
while( true )
{
if( !OCIFetchInto($stmt, $arr, OCI_ASSOC|OCI_RETURN_LOBS) )
break;
while( list($key,$val)=each($arr) )
{
echo "Key:".$key."\tVal:".$val."\n";
}
}
?>
Expected result:
----------------
Key:GUID Val:0011856596F1-423F9E4F-05E6-C367-9C3C
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Key:GUID Val:0011856596F1-423F906A-0575-4A3D-F21A
Key:OBJCONTENT Val:
Key:GUID Val:0011856596F1-423F906C-01C6-8953-3638
Key:OBJCONTENT Val:
Key:GUID Val:0011856596F1-423F906E-02D6-EED9-B606
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Key:GUID Val:0011856596F1-423F9070-002C-1E4F-B904
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Key:GUID Val:0011856596F1-423F9072-022E-F935-14B2
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Key:GUID Val:0011856596F1-423F9074-0118-D30B-B890
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Key:GUID Val:0011856596F1-423F9075-0489-6151-A41E
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Actual result:
--------------
Key:GUID Val:0011856596F1-423F9E4F-05E6-C367-9C3C
Key:OBJCONTENT Val:¢Xþ³ ïy ¡Óa ü îûec Ä2 ®:
Segmentation Fault (core dumped)
Previous Comments:
------------------------------------------------------------------------
[2005-10-04 10:39:41] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-10-04 08:54:10] johnny at ouranous dot idv dot tw
oci8-beta still got crashed. And there was something I forgot to
mention. My Oracle 9i is configured to use UTF8.
------------------------------------------------------------------------
[2005-09-17 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-09-09 08:28:53] [EMAIL PROTECTED]
http://www.php.net/anoncvs.php
(And please leave at Feedback until you can provide more information)
------------------------------------------------------------------------
[2005-09-09 05:07:50] johnny at ouranous dot idv dot tw
Sorry, I'm having a business trip now, will not be able to test until
October.
And I have no experience of build php from CVS, where can I get
information about it?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33383
--
Edit this bug report at http://bugs.php.net/?id=33383&edit=1