PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #1376

yaz_record function not returning array

Details

#1376yaz_record function not returning array
Submitted2004-05-10 18:47 UTC
Fromasnagy at php dot net
StatusBogus
PackageDB
PHP Version4.3.3
OSLinux
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