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

Bug #3084 getDocData('copyright') returns null
Submitted: 2005-01-03 17:49 UTC
From: brian at onlineinfo dot net Assigned: polone
Status: Closed Package: XML_NITF
PHP Version: 4.3.10 OS: Linux
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 : 49 - 43 = ?

 
 [2005-01-03 17:49 UTC] brian at onlineinfo dot net
Description: ------------ getDocData('copyright') returns null. the m_kDocData property has no 'copyright' index. the copyright holder is, however, assigned to property m_sCopyright. Reproduce code: --------------- reproduce: $nitf =& new_nitf($file); $copyright = $nitf->getDocData('copyright'); Patch: --- /usr/local/lib/php/XML/NITF.php 2004-12-30 12:13:11.000000000 -0500 +++ pear/XML/NITF.php 2005-01-03 12:31:22.000000000 -0500 @@ -450,6 +450,7 @@ case 'DOC.COPYRIGHT': $this->m_sCopyright = $kAttrib['HOLDER']; + $this->m_kDocData['copyright'] =& $this->m_sCopyright; break; case 'MEDIA': Expected result: ---------------- I expect to see the 'holder' attribute of 'doc.copyright' element returned by $nitf->getDocData('copyright'). Actual result: -------------- Actual result: null is returned by $nitf->getDocData().

Comments

 [2005-03-18 14:49 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!