Doc #55289 [Opn->Csd]: XSLTProcessor::getParameter returns false on unset parameters

From: Date: Thu, 03 Jan 2013 19:55:03 +0000
Subject: Doc #55289 [Opn->Csd]: XSLTProcessor::getParameter returns false on unset parameters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9349@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55289&edit=1 ID: 55289 Updated by: philip@php.net Reported by: christian dot korff at gmail dot com Summary: XSLTProcessor::getParameter returns false on unset parameters -Status: Open +Status: Closed Type: Documentation Problem Package: XSLT related Operating System: Linux PHP Version: 5.3.6 -Assigned To: +Assigned To: philip Block user comment: N Private report: N New Comment: You're correct and this has been fixed in SVN, thank you for the bug report. Here's the related code in php-src: http://lxr.php.net/xref/PHP_5_4/ext/xsl/xsltprocessor.c#819 Previous Comments: ------------------------------------------------------------------------ [2013-01-03 19:53:59] philip@php.net Automatic comment from SVN on behalf of philip Revision: http://svn.php.net/viewvc/?view=revision&revision=328972 Log: Returns false (not null) if the param is not set, otherwise a string. Fixes PHP Bug #55289 ------------------------------------------------------------------------ [2011-07-26 20:13:10] christian dot korff at gmail dot com Description: ------------ The PHP manual says that XSLTProcessor::getParameter returns NULL for unset paremeters. However it seems that it results in the return value (bool)false. Test script: --------------- $xsl = new XSLTProcessor(); var_dump($xsl->getParameter("", "foobar")); Expected result: ---------------- NULL Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55289&edit=1

« previous php.doc.bugs (#9349) next »