php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29497 xsltprocessor->setParameter() to accept an array
Submitted: 2004-08-02 19:17 UTC Modified: 2016-04-10 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: tony at marston-home dot demon dot co dot uk Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.0.0 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tony at marston-home dot demon dot co dot uk
New email:
PHP Version: OS:

 

 [2004-08-02 19:17 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-05 16:50 UTC] 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-05 21:23 UTC] 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-06 08:34 UTC] 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-06 11:28 UTC] tony at marston-home dot demon dot co dot uk
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.
 [2016-03-27 08:32 UTC] krakjoe@php.net
-Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug -Package: Feature/Change Request +Package: *General Issues
 [2016-03-27 08:32 UTC] krakjoe@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 the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I'm unsure if this is still applicable, it was in the wrong category anyway. 

Changing category, and requesting reproduce script.
 [2016-04-10 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 22:01:30 2024 UTC