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

Bug #19074 missing paramater in "XML_SVG_Image" class
Submitted: 2011-11-25 03:18 UTC
From: garhy Assigned: doconnor
Status: Closed Package: XML_SVG
PHP Version: 5.3.0 OS: Win7
Roadmaps: (Not assigned)    
Subscription  


 [2011-11-25 03:18 UTC] garhy (Ahmed Garhy)
Description: ------------ hello, bug is that i was not able to add an image element because there is no method to set the declared variable "$_href" in the class. i just added a new parameter "$_href" to "setShape" function to be able to set the image href. ====================== function setShape($_href,$x, $y, $width, $height) { $this->_href=$_href; $this->_x = $x; $this->_y = $y; $this->_width = $width; $this->_height = $height; } ========= compare this to the last version function. Hope i was helpful :) Thanks Ahmed Garhy Test script: --------------- function setShape($_href,$x, $y, $width, $height) { $this->_href=$_href; $this->_x = $x; $this->_y = $y; $this->_width = $width; $this->_height = $height; } Expected result: ---------------- adding image elements to SVG files will work fine. Actual result: -------------- --none

Comments

 [2011-11-26 10:36 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.