Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3

Bug #9865 error with parse function
Submitted: 2007-01-18 12:01 UTC
From: File_DICOM at ruquay dot com Assigned:
Status: No Feedback Package: File_DICOM (version 0.3)
PHP Version: 5.2.0 OS: Windows
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 + 42 = ?

 
 [2007-01-18 12:01 UTC] File_DICOM at ruquay dot com (Ruquay K Calloway)
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

Comments

 [2007-05-03 12:54 UTC] ncouffin (Nicolas Couffin)
Bug in GetValue() Possible fix: DICOM.php line 1990: else // retreive by name { if (isset($this->_elements_by_name[$gp_or_name])) { //return $this->_elements_by_name[$gp_or_name]->getValue(); return $this->_elements_by_name[$gp_or_name]->value; } else { //return $this->raiseError("Element $gp_or_name not found"); return false; } }
 [2007-06-21 07:12 UTC] grublord (Liviu Constantinescu)
The above fix does not appear to work, no. Is there any workaround for this issue?
 [2010-02-14 01:07 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Feedback
Does anyone have an example file we could use to test it? Please attach it here.
 [2012-01-27 19:46 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: No Feedback -Roadmap Versions: 0.4 +Roadmap Versions: