|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-12 12:08 UTC] tony2001 at phpclub dot net
[2006-10-12 13:30 UTC] kleiner+pecl at gmail dot com
[2006-10-12 13:41 UTC] tony2001 at phpclub dot net
[2006-10-12 14:16 UTC] kleiner+pecl at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ Package version: 0.3.1 Calling rar_list() via another function causes the resource handle to become invalid. Reproduce code: --------------- function do_rar($ra) { $entries = rar_list($ra); } $filename = "tmp/amin.rar"; $ra = rar_open($filename); $entries = rar_list($ra); do_rar($ra); rar_close($ra); Expected result: ---------------- I expect no errors to occur. Actual result: -------------- Upon calling rar_close() I get the warning "cannot find Rar file resource". If I comment out the line where I call do_rar(), however, the error disappears. It looks as if calling rar_list() indirectly via do_rar() causes the resource handle to become invalid, while calling rar_list() directly leaves the handle intact.