Re: [SOAP] Expand Boolean from '1' to 'true' in PHP 5 SOAP?
| From: | Michael Rasmussen | Date: | Thu, 23 Mar 2006 22:51:09 +0000 |
| Subject: | Re: [SOAP] Expand Boolean from '1' to 'true' in PHP 5 SOAP? | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2169@lists.php.net to get a copy of this message | ||
On Thu, 23 Mar 2006 22:59:13 +0100, David Kingma | jool.nl wrote:
>
> Which version of PHP are you using? In older PHP (<= 5.0.4) it was 1's and
> 0's, now its 'true' or 'false'.
>
In PHP 5.1 all values of 1 are converted to true and all values of 0 are
converted to false.
I discovered one thing, which I would stipulate as a bug. All values which
are not 1 (one) are converted to false. E.g. -n..0 && 2..n. Is that not a
bug? I mean, you have no way of making any kind of error check!
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917