#47996 [Opn->Bgs]: new SOAPVar('false', XSD_BOOLEAN) comes out 'true'

From: Date: Sun, 19 Apr 2009 14:34:46 +0000
Subject: #47996 [Opn->Bgs]: new SOAPVar('false', XSD_BOOLEAN) comes out 'true'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135973@lists.php.net to get a copy of this message
ID: 47996 Updated by: iliaa@php.net Reported By: piperj01 at u dot washington dot edu -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Windows XP PHP Version: 5.2.9 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You need to pass it boolean FALSE and not string 'false' which is a non-empty string and evaluates to TRUE. Previous Comments: ------------------------------------------------------------------------ [2009-04-16 23:49:00] piperj01 at u dot washington dot edu Also, I noticed if I use: new SOAPVar('', XSD_BOOLEAN, null, null, null, $ns) That the generated will show up as 'false'. This can be used as a workaround since 'false' doesn't appear to work. ------------------------------------------------------------------------ [2009-04-16 22:39:49] piperj01 at u dot washington dot edu Description: ------------ Trying to pass a Boolean value as a parameter when invoking a webservices via SOAP. But when using calls like: new SOAPVar('false', XSD_BOOLEAN, null, null, null, $ns) The resulting XML shows 'true' not 'false'. Looks like it is related to bug 33602. I suspect something to do with soap.c function serialize_function_call() around line 4298. The code there appears to do work related to the 'true' case, but not the 'false' case. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47996&edit=1

« previous php.bugs (#135973) next »