note 89376 added to xsltprocessor.setparameter

From: Date: Thu, 05 Mar 2009 03:47:58 +0000
Subject: note 89376 added to xsltprocessor.setparameter
Groups: php.notes 
Request: Send a blank email to php-notes+get-151501@lists.php.net to get a copy of this message
Note that there is no way to remove a parameter from an XSLTProcessor unless you know its name, and there is no way (that I can find) to get a list of the current parameters. This means that you cannot reuse an XSLTProcessor with different parameters unless you call XSLTProcessor->removeParameter() on every parameter, and to do that you need to know the names of all the currently set parameters. I bumped into this because we were caching XSLTProcessors for reuse, and they were spitting out content based on phantom parameters (they were still there from previous uses). ---- Server IP: 117.55.229.1 Probable Submitter: 152.91.9.115 ---- Manual Page -- http://www.php.net/manual/en/xsltprocessor.setparameter.php Edit -- https://master.php.net/note/edit/89376 Del: integrated -- https://master.php.net/note/delete/89376/integrated Del: useless -- https://master.php.net/note/delete/89376/useless Del: bad code -- https://master.php.net/note/delete/89376/bad+code Del: spam -- https://master.php.net/note/delete/89376/spam Del: non-english -- https://master.php.net/note/delete/89376/non-english Del: in docs -- https://master.php.net/note/delete/89376/in+docs Del: other reasons-- https://master.php.net/note/delete/89376 Reject -- https://master.php.net/note/reject/89376 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151501) next »