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

Bug #3033 Undeclared methods of RDF_Error
Submitted: 2004-12-27 05:30 UTC
From: doconnor Assigned: lsmith
Status: Closed Package: RDF
PHP Version: 5.0.3 OS:
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 : 44 - 9 = ?

 
 [2004-12-27 05:30 UTC] doconnor
Description: ------------ Fatal error: Call to undefined method RDF_Error::getBaseURI() in c:\php\PEAR\RDF\Model.php on line 72 Reproduce code: --------------- <?php require_once 'RDF.php'; require_once 'RDF/Model/Memory.php'; require_once 'RDF/RDQL.php'; // Filename of an RDF document $base = "products.rdf"; // Create a new Model_Memory $model =& new RDF_Model_Memory(); // Load and parse document $model->load($base); // Show input model $model->writeAsHtmlTable(); ?> //Products.rdf <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xml:lang="en" xmlns:product="http://www.foo.com/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <product:Product> <dc:title>Monkey</dc:title> <product:barcode>1</product:barcode> <product:cost>$2.00</product:cost> <dc:description>A large hairy beast</dc:description> </product:Product> <product:Product> <dc:title>Pen</dc:title> <product:barcode>4</product:barcode> <product:cost>$3.00</product:cost> <dc:description>A writing implement</dc:description> </product:Product> </rdf:RDF> Expected result: ---------------- Error is handled gracefully by calling the getBaseURI method Actual result: -------------- Fatal error: Call to undefined method RDF_Error::getBaseURI() in c:\php\PEAR\RDF\Model.php on line 72

Comments

 [2004-12-28 17:46 UTC] smith at backendmedia dot com
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.