PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_DICOM » Bug #9865

error with parse function

Details

Submitted2007-01-18 12:01 UTC
FromFile_DICOM at ruquay dot com
StatusNo Feedback
PackageFile_DICOM
PHP Version5.2.0
OSWindows
Roadmaps(Not assigned)

Comments

[2007-01-18 12:01 UTC] File_DICOM at ruquay dot com

Description:
------------
Throws error on parse.

Test script:
---------------
require_once('File/DICOM.php');
$dicom = new File_DICOM();
$dicom->parse('path/to/dicom/file');

possible fix -- change line 280 from
return $val[''];
to
return $val[1];

(worked for me)

Expected result:
----------------
should return true

Actual result:
--------------
Notice: Undefined index: in C:\php\PEAR\lib\File\DICOM\Element.php on line 280

Notice: Undefined index: in C:\php\PEAR\lib\File\DICOM\Element.php on line 280
.
.
.

Fatal error: Out of memory (allocated 2883584) (tried to allocate 1230307331 bytes) in C:\php\PEAR\lib\File\DICOM\Element.php on line 176