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 #3744

Undefined index

Details

Submitted2005-03-08 14:26 UTC
Fromscryo at free dot fr
StatusSuspended
PackageFile_DICOM
PHP Version5.0.3
OSWindows
Roadmaps(Not assigned)

Comments

[2005-03-08 14:26 UTC] scryo at free dot fr

Description:
------------
First, I'm french so excuse me for my english...
I have installed the last version of Wamp server (http://www.wampserver.com/), including PHP5.0.3 and PEAR.
This month, I work on DICOM images and I've installed the package File_DICOM version 0.3 (very useful ! Thanks !).

But it didn't function immediately ! Indeed, when I want to retrieve elements's values with $my_obj->getValue(0x0008,0x0008) for example, the script don't function.
I have the alert message : "Le document ne contient aucune donnée." with the most of images and with another one the message in the script "Object id #3"

So it function when I replace the line
return $val[''];
by
return $val[1];
in the function _readInt($IN, $bytes, $len) of Element.php

In fact, there is an error (unrecognized) when we call the parse method of Dicom.php

Reproduce code:
---------------
Element.php
...
function _readInt($IN, $bytes, $len)
{
...
return $val[''];
...
}

Expected result:
----------------
I want to retrieve an element with the function getValue of Dicom.php

Actual result:
--------------
Element.php
...
function _readInt($IN, $bytes, $len)
{
...
return $val[1];
...
}