Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63621 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89715 invoked from network); 25 Oct 2012 10:46:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2012 10:46:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:51860] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/E4-59506-38819805 for ; Thu, 25 Oct 2012 06:46:27 -0400 Received: by mail-oa0-f42.google.com with SMTP id j1so1562425oag.29 for ; Thu, 25 Oct 2012 03:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=c95lLBwqOwquchB3PQ2VzpHtEW8eun/JndhZoGjWZaw=; b=EQmRC1s0nHS8FcbRt6xzpbfWEUPotoJ3O0WDPsCqKmn5sElj2IoHH42lR6zTSK0rw5 kOPBMRIPWcIQfKT3VnsQs3Lzih9tnuhS6NV6eWKaSwPSZ0ALzF6Jb842swPj63zWV9ss V1wa5qagJfVk275K5rMT219hq/+CyF3O8unJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=c95lLBwqOwquchB3PQ2VzpHtEW8eun/JndhZoGjWZaw=; b=KFglz/viyxR9kFMuM6NZbQfqnpbyuGxf6iPs3lC8QNXgeQn3VPe9RAwO5GuQzJdPFK GsaiQ1ER9ak4tBywV86l5ZXr7Qs0pu0a/4/0DgnCMI2Z/LH6Q5vYuucrPGpQ9dh0hHYX /rtbnwf8ESzbG0597WiBgke9AonNmTTCibY4tDbbG0HlmQ+pFoVlodS+Vnqmnu31idRe s2MV7z52d+bU5arPDQP5M5K6vgV0xYYzUi18GRr4n+nBxo4SF1hgPgVasGpfiKhSQVYf j0aUXo4BB5znksliWGr2ocz2/fk4IqkFfy2Ja5ny29zWqG+PLNCmsllNtfiPSPh4y1T0 kGHg== Received: by 10.182.240.45 with SMTP id vx13mr15663567obc.21.1351161984583; Thu, 25 Oct 2012 03:46:24 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.76.123.75 with HTTP; Thu, 25 Oct 2012 03:46:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Oct 2012 18:46:04 +0800 X-Google-Sender-Auth: sbN1k8hD9aOWE_bVsW2XALZ11pY Message-ID: To: Sebastian Krebs Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnWHsqvhGcXfu6Ft2qbCojYED/GB+By5tlgHXX5WhLj2QhPwF75vJW8/ON2l9HG+WSrVC/n Subject: Re: [PHP-DEV] Changing the default value of "true" for CURLOPT_SSL_VERIFYHOST From: aharvey@php.net (Adam Harvey) On 25 October 2012 18:38, Sebastian Krebs wrote: > 2012/10/25 crankypuss >> Booleans ought to be 1 and 0. Casting a boolean to 2 is just wrong, a way >> to fix badly written code a few people have written and in so doing risk >> the breakage of far more code that is correct. > > > Thats not completely true. Boolean 'false' is equal to 0 and Boolean 'true' > is something different than 0, that _may_ be 1 (and in most cases is), but > it's not limited too. Just said. In general that's true, but the PHP manual explicitly documents the result of a boolean to integer conversion as 0 and 1: http://au1.php.net/types.integer Adam