#29497 [Fbk->Opn]: xsltprocessor->setParameter() to accept an array
| From: | tony at marston-home dot demon dot co dot uk | Date: | Fri, 06 Aug 2004 09:28:29 +0000 |
| Subject: | #29497 [Fbk->Opn]: xsltprocessor->setParameter() to accept an array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64184@lists.php.net to get a copy of this message | ||
ID: 29497
User updated by: tony at marston-home dot demon dot co dot uk
Reported By: tony at marston-home dot demon dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 5.0.0
New Comment:
I am unable to produce a sample script of such a small size as (a) all
my scripts are much larger, (b) the error happens at random so I do not
know which command is causing it.
All I can tell you is that while running the system on my Windows XP
box the pages would display OK except for every 3rd or 4th iteration.
Previous Comments:
------------------------------------------------------------------------
[2004-08-06 08:34:34] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2004-08-05 21:23:45] tony at marston-home dot demon dot co dot uk
I downloaded that snapshot and tried $xp->setParameter($namespace,
$array) instead of $xp->setParameter($namespace, 'name', $value) and it
worked.
However, several times something caused Apache to abort and restart. I
reverted to my old code and it still caused Apache to fail now and
then. There appears to be a bug somewhere else in this snapshot.
------------------------------------------------------------------------
[2004-08-05 16:50:51] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-08-02 19:17:20] tony at marston-home dot demon dot co dot uk
Description:
------------
The xsltprocessor->setParameter() method currently only accepts one
parameter at a time. It would be more convenient if this could also
accept an array of parameters in one go just like the xslt_process()
function in PHP4.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29497&edit=1