FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=19074&edit=1

ID: 19074
Updated by: daniel.oconnor@gmail.com
Reported By: ahmed dot garhy at yahoo dot com
Summary: missing paramater in "XML_SVG_Image" class
-Status: Open
+Status: Closed
Type: Bug
Package: XML_SVG
Operating System: Win7
PHP Version: 5.3.0
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-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.




Previous Comments:
------------------------------------------------------------------------

[2011-11-24 22:18:20] 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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 26, '11 at 4:36a
activeNov 26, '11 at 4:36a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase