From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.6 PHP Bug Type: YAZ related Bug description: yaz_record function not returning array
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 -- Edit bug report at http://bugs.php.net/?id=28353&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28353&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28353&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28353&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28353&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28353&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28353&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28353&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28353&r=support Expected behavior: http://bugs.php.net/fix.php?id=28353&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28353&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28353&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28353&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28353&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28353&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28353&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28353&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28353&r=float