Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59761 invoked from network); 25 Sep 2016 05:29:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2016 05:29:24 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.41 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.41 mail-vk0-f41.google.com Received: from [209.85.213.41] ([209.85.213.41:32859] helo=mail-vk0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/05-11573-1B067E75 for ; Sun, 25 Sep 2016 01:29:21 -0400 Received: by mail-vk0-f41.google.com with SMTP id z126so19290629vkd.0 for ; Sat, 24 Sep 2016 22:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Af1tgtuR/+dZOKGRuoOu9MSJFdrXZG3Ph52AC4a4je4=; b=NsAI4SimzeFiaj3aT4IpFLVF4kpILf/PgQv+eqbzd/X5lup0hbrhvmf5AAMoUNUJz2 66LYU4d17fg4eev1oozX+9M6DXejvS+UnIpiA5JXoYMBm0/VSHyQP8V6D0ekhf/wak52 Ytf7YSrquAryF/1D0LDJqC5fgCZzyHhRZWSzw/Pa4TDi6Luu48X/ll4Abf8WjcNq0AS0 n8Pt0Tl3LnZMuPF51Q24uV421B19IxEke5sm7/OA50zfpQiTPTNOqltmODCkQWFYBp6H 4l5Qq2hPB4eOzgPOC+p0OE2a/mbftwbjh96Mz4ozXWVGW9fr+jm/sjhfT38r1SBGsPrW Qq4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Af1tgtuR/+dZOKGRuoOu9MSJFdrXZG3Ph52AC4a4je4=; b=i2hD7F3jIrPXyJTxhxM25tRFv4foz4jhPfW1iFuyx6/fElfTibq+xY6cQSic0a218L K2CtSuB+19yJIuyVEVVgoBUC7m2ZwiMzPxv+Jjfese8hbVlsMQfBkRQn2aE5egXSrGMT os3xrKBxtS1kRdkBoXSLQbCG9fk54HL/PaZcjpVKqK+6W/C/4oilH9WLZMM0mEyoOONu SlOSLy9iXBGNW3qGmJwXIaiA216ZhfcJyTbHB+HBKu3aylyNP+1J5jyXmfZhb0LOrtt8 nx+VnbnXmT42TNg+5qXzX92K0o8JOpObQnlDlki5cxCMgIsWiLMC0aX2r/0pZ1b120lJ P86g== X-Gm-Message-State: AA6/9Rn5twE069WzonKN/HkPLJJVTXOL+in33+TH6q5lZIQ9ZGmE37HsNv+bgz+30pyOe429m3KI6lFHqqXaxw== X-Received: by 10.31.74.4 with SMTP id x4mr2966888vka.58.1474781358032; Sat, 24 Sep 2016 22:29:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.81.178 with HTTP; Sat, 24 Sep 2016 22:29:16 -0700 (PDT) Received: by 10.176.81.178 with HTTP; Sat, 24 Sep 2016 22:29:16 -0700 (PDT) In-Reply-To: References: Date: Sun, 25 Sep 2016 12:29:16 +0700 Message-ID: To: Dan Ackroyd Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114daaacf78b9c053d4e4af8 Subject: Re: [PHP-DEV] [VOTE] get_class() disallow null parameter From: pierre.php@gmail.com (Pierre Joye) --001a114daaacf78b9c053d4e4af8 Content-Type: text/plain; charset=UTF-8 Hi On Sep 24, 2016 6:02 PM, "Dan Ackroyd" wrote: > > Hi, > > I'm going to put the 'get_class() disallow null parameter' RFC to a > vote: https://wiki.php.net/rfc/get_class_disallow_null_parameter > > I realise that some people might prefer to have it target 8.0, rather > than 7.2. While I appreciate that is a reasonable point of view, I > personally believe that more people are hitting this as a bug than are > using it deliberately. > > As the behaviour was altered in a point release, fixing it as a bug in > a minor release seems reasonable to me. We can agree that the behavior is debatable but I am pretty sure it is by design (for what I can remember) and can make sense (can be considered ugly but still). Also this behavior is clearly documented: http://th1.php.net/manual/en/function.get-class.php "If object is omitted when inside a class, the name of that class is returned." I am opposed to break BC because we change our mind about how clean is this behavior and I recommend the (future) RMs to veto this change. Cheers Pierre --001a114daaacf78b9c053d4e4af8--