Req->Bug #29497 [Opn->Fbk]: xsltprocessor->setParameter() to accept an array

From: Date: Sun, 27 Mar 2016 08:32:33 +0000
Subject: Req->Bug #29497 [Opn->Fbk]: xsltprocessor->setParameter() to accept an array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200152@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=29497&edit=1 ID: 29497 Updated by: krakjoe@php.net Reported by: tony at marston-home dot demon dot co dot uk Summary: xsltprocessor->setParameter() to accept an array -Status: Open +Status: Feedback -Type: Feature/Change Request +Type: Bug -Package: Feature/Change Request +Package: *General Issues Operating System: * PHP Version: 5.0.0 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2004-08-06 11:28:27] 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. ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=29497&edit=1

« previous php.bugs (#200152) next »