ID:               25959
 Updated by:       [EMAIL PROTECTED]
 Reported By:      webmaster at pulsarbremen dot de
 Status:           Verified
 Bug Type:         dBase related
 Operating System: All
-PHP Version:      4.3.3
+PHP Version:      4CVS-20031018
 New Comment:

(gdb) bt
#0  0x4077a831 in _int_malloc () from /lib/i686/libc.so.6
#1  0x40779853 in malloc () from /lib/i686/libc.so.6
#2  0x40780860 in strdup () from /lib/i686/libc.so.6
#3  0x4079d26c in tzset_internal () from /lib/i686/libc.so.6
#4  0x4079de36 in __tz_convert () from /lib/i686/libc.so.6
#5  0x4079c20e in localtime_r () from /lib/i686/libc.so.6
#6  0x08251441 in php_message_handler_for_zend (message=6, data=0x0) at
/usr/src/web/php/php4/main/main.c:856
#7  0x08289ed2 in zend_message_dispatcher (message=6, data=0x0) at
/usr/src/web/php/php4/Zend/zend.c:681
#8  0x082778ce in _mem_block_check (ptr=0x864d0a4, silent=0, 
    __zend_filename=0x83281c0
"/usr/src/web/php/php4/ext/dbase/dbase.c", __zend_lineno=543,
__zend_orig_filename=0x0, 
    __zend_orig_lineno=0) at
/usr/src/web/php/php4/Zend/zend_alloc.c:628
#9  0x08277b16 in _mem_block_check (ptr=0x864d0a4, silent=1, 
    __zend_filename=0x83281c0
"/usr/src/web/php/php4/ext/dbase/dbase.c", __zend_lineno=543,
__zend_orig_filename=0x0, 
    __zend_orig_lineno=0) at
/usr/src/web/php/php4/Zend/zend_alloc.c:683
#10 0x08276a9b in _efree (ptr=0x864d0a4, __zend_filename=0x83281c0
"/usr/src/web/php/php4/ext/dbase/dbase.c", 
    __zend_lineno=543, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at /usr/src/web/php/php4/Zend/zend_alloc.c:243
#11 0x080c4104 in php_dbase_get_record (ht=2, return_value=0x864008c,
this_ptr=0x0, return_value_used=1, assoc=1)
    at /usr/src/web/php/php4/ext/dbase/dbase.c:543
#12 0x080c41b6 in zif_dbase_get_record_with_names (ht=2,
return_value=0x864008c, this_ptr=0x0, return_value_used=1)
    at /usr/src/web/php/php4/ext/dbase/dbase.c:572
#13 0x0829bb56 in execute (op_array=0x8649f14) at
/usr/src/web/php/php4/Zend/zend_execute.c:1616
#14 0x0828a5b2 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/web/php/php4/Zend/zend.c:884
#15 0x0825344b in php_execute_script (primary_file=0xbffffbc0) at
/usr/src/web/php/php4/main/main.c:1729
#16 0x082adba6 in main (argc=2, argv=0xbffffc54) at
/usr/src/web/php/php4/sapi/cli/php_cli.c:819



Previous Comments:
------------------------------------------------------------------------

[2003-10-22 18:35:20] webmaster at pulsarbremen dot de

Description:
------------
Experiencing the following problem:
Using dbase_get_record() or dbase_get_record_with_names() on some files
makes php.exe crash.
Running php-4.3.3-Win32.
You can find the DBF-file at http://www.pulsarbremen.de/DRSMain.DBF
These files are generated by a radio automation software (tried to
generate a new one: same result), I have no influence on the structure
of the files but need to read them.

Thanks for any help!

Reproduce code:
---------------
$db_path = "DRSMain.DBF";
$dbh = dbase_open($db_path,0);
$rowcount = dbase_numrecords ($dbh);
    for ($i=1; $i <= $rowcount; $i++) {
          $row = dbase_get_record_with_names($dbh,$i);
          echo $row[ARTIST];
          }

Expected result:
----------------
Script should write contents of the ARTIST-field in every database row.

Actual result:
--------------
php.exe crashes (no output), apache shows error 500 (internal server
error)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25959&edit=1

Reply via email to