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 : 29 + 39 = ?

 
 [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] polone
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. This has been fixed. I've release version 1.0.2 today.