Home » Database » DB » Bug #1376
yaz_record function not returning array
Details
| #1376 | yaz_record function not returning array |
|---|---|
| Submitted | 2004-05-10 18:47 UTC |
| From | asnagy at php dot net |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-05-10 18:47 UTC] asnagy at php dot net
Description:
------------
I am using the yaz_record funtion to return an individual record from
the query. I have specified the 'array' type as my 3rd parameter. I am
consistently getting a null result. When I specify the type as 'string'
or 'raw', everything works well.
Reproduce code:
---------------
$conn = yaz_connect(blpcz.bl.uk:21021/BLPC-ALL, array('persistent' =>
false));
yaz_search($conn, 'rpn', $phrase);
yaz_wait();
$hits = yaz_hits($conn);
echo "I have searched, returning $hits records ... ";
$record = yaz_record($conn, 1, 'array');
print_r($record);
yaz_close($conn);
Expected result:
----------------
An associative array
Actual result:
--------------
null