|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-28 01:00 UTC] kindaian at gmail dot com
[2008-07-17 01:27 UTC] jani@php.net
[2008-07-25 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 06:00:02 2025 UTC |
Description: ------------ I've a dbf with a problem in the array that holds the field definitions, so when i try to open it it crashes. I've tryed to open it in DBU and when i try to access the fields, it exits with "BASE/1132 bound error: array access". In PHP, it just exits with an error that it can't open the file and stops execution ("Error reading DBF's number of fields"). The problem is that I've the code enclosed by a try/catch and the program instead of gracefully execute the catch... just breaks. Maybe related with the way error handling is handled inside the dbase functions as pointed out also in the bug #37589 "dbase_open doesnt act like it should" for another issue. Reproduce code: --------------- try { $dbf = @dbase_open($file_name, 0); } catch (Exception $e) { echo ("Error opening $file_name"); } Expected result: ---------------- I was expecting that the program would print the error message and carry on. Actual result: -------------- The execution just stops where the error happens, and no more code is processed. The error "Error reading DBF's number of fields" is shown in the browser.