|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-10 15:32 UTC] adam at indexdata dot dk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
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