Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93577 invoked from network); 25 Oct 2012 11:23:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2012 11:23:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=fullmoon@newsguy.com; sender-id=softfail Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.3 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.3 plane.gmane.org Received: from [80.91.229.3] ([80.91.229.3:47709] helo=plane.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/A5-59506-A2129805 for ; Thu, 25 Oct 2012 07:23:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TRLX2-00058z-J6 for internals@lists.php.net; Thu, 25 Oct 2012 13:23:24 +0200 Received: from 169.sub-75-228-161.myvzw.com ([75.228.161.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 13:23:24 +0200 Received: from fullmoon by 169.sub-75-228-161.myvzw.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 13:23:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Thu, 25 Oct 2012 05:22:58 -0600 Lines: 70 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 169.sub-75-228-161.myvzw.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: X-Archive: encrypt Subject: Re: [PHP-DEV] Changing the default value of "true" for CURLOPT_SSL_VERIFYHOST From: fullmoon@newsguy.com (crankypuss) On 10/25/2012 04:54 AM, Kris Craig wrote: >> So you propose to implement strict type checking of parameters because a >> few bozos don't read the documentation? That doesn't make much sense to me. >> >> What makes more sense is that the extension perform its own type checking >> where that is appropriate. I have plenty of subroutine code that checks >> what it was passed, it isn't difficult to do the job right instead of >> twiddling the language every time somebody complains. >> >> And by the way, is there any effort in-progress to make the basic >> subroutine calls more uniform, or are is_array() and isset() and friends >> going to forever remain underscore versus non-underscore? >> >> Perhaps I have no clue, but it sounded as though the language was to be >> changed to "fix" an error in an extension, 'scuse me if I'm talking out of >> my nether orifice. > > > Well, at least you're living up to your username, crankypuss. Apparently I need to look into gmane settings in order to avoid receiving direct email replies in addition to seeing replies on the list. > Still, > though, if your goal is to persuade as opposed to simply trolling, you're > probably not going to be very successful by engaging in name-calling What name-calling? People who pass the wrong data to subroutines are bozos, plain and simple, by definition; if they actually test their code, they'll figure out what they've done wrong, thus showing that they aren't bozos after all. That applies to anybody, me included: if you write bad code you are a bozo, end of story. It's neither incurable nor fatal but being nice to bozos for the sake of political correctness is just silly. > and > going on a tangent about the consistency of function names. If you'd like > to ask about function names, please start a separate thread for that. > Attempting to hijack this thread to discuss your unrelated grievance won't > get you very far. Let's stick to the issues: don't change the language to make up for a poorly written extension used by people who don't read the doc and test their code, is that difficult to grasp? > Also, I've seen this error quite a few times. It's not just "a few bozos," > as you put it. It's an easy error to make even if you're knowledgeable. I > agree that any behavioral changes should happen in libcurl and not PHP, Then we agree, what's the reason for your rant? > but > that doesn't mean this isn't a problem or that we should just belittle > those who have encountered it and ignore it. Updating the documentation to > address this specific mistake might help reduce its frequency somewhat. > Throwing a warning or notice if a bool is passed would also be helpful in > my opinion. If you limit it to the offending extension, file; if you want to throw a warning every time a boolean is passed to a subroutine, I'll be very disappointed in the PHP development community. > Let's not troll the OP for suggesting a solution to this issue just because > we don't agree with it. It's just a matter of mutual respect. This isn't > 4chan or YouTube, after all. ;) Get over that stuff please, it's a simple matter, one does not modify a language to pamper poorly written extensions unless he wants the language to rapidly become a kludge.