Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13263 invoked from network); 22 Jul 2017 02:15:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2017 02:15:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.218.52 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.218.52 mail-oi0-f52.google.com Received: from [209.85.218.52] ([209.85.218.52:35870] helo=mail-oi0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/88-02884-D55B2795 for ; Fri, 21 Jul 2017 22:15:58 -0400 Received: by mail-oi0-f52.google.com with SMTP id x187so64758819oig.3 for ; Fri, 21 Jul 2017 19:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lerdorf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cbtDmo03y6FJD2Wkrqddu6CmErWBfABvyHIaKeSY7Us=; b=FZfecdMWwDhw6noiQghOaI/6GOSp7gB99tok4bBmuC9ccYDtzTlVXF7sUF8U+8SwGR IdAx8Vnz6sFExd3Rokc5yBL6ChdrOxhk9KU7KDbwq/ARmr1QvI3eZ53OIfNfyXXqIJpn 6mo4z+2hZrvmBHel6iHQrnef/sNg+Tc28s/G+hCiDq+OH19fwo4jPq7GCuN+2veVS4ZE Lcm3W/IreBgoyihs1/4sD2YikrIwC/Qp5NO9DNOM2WKu5JooGcnzfAyG5jOHft1oluev KViCp5Sj1d9hIwFEZLq3K75cAsSTW/9N3C5YyoA978UtgL+Tompuz9+dhcvo/5kFCuGp tMAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cbtDmo03y6FJD2Wkrqddu6CmErWBfABvyHIaKeSY7Us=; b=I5fI8Bps5ugQeWsbIf19P12sT/t6Ma4vlDjEvx/LS0Tlp3CAb4A674OkqfB++ad03g QFwtjQCBrGgNtCHjzuirG7hBBAM3uWiW0kL8KIotduH/fn4iww7UdKWwdYbeS47V5jE7 ZrZPlQQHjyStS7Eep2A1OYRswuUhBPLBIm/iLIDSHoR3fXyxjsdfRAPm+tyxXvMug30x R8mUTJzFgzv2PoYP0FV3nikNALgAnQ2ERzUJyKpCvjpQU8HKHYTExxKKtbS5g4gQko0w 5zj+Qwsm3jjBwRQ5hkXzO5zhALZ6tZn1tO+HPzc+Ja4te9TB+JWxTz2C2XYe/i/A2RE7 yBRw== X-Gm-Message-State: AIVw112iGWB9VI8vkFhFf8uq1xS5ClST9vhjZ2D23KTjDJWVt6mVzmHk QkRfpVNz7o2Y0YuCwIlnLJlT7wrvvmPr+v3k6A== X-Received: by 10.202.5.69 with SMTP id 66mr3519101oif.173.1500689754090; Fri, 21 Jul 2017 19:15:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.28.5 with HTTP; Fri, 21 Jul 2017 19:15:13 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 Jul 2017 22:15:13 -0400 Message-ID: To: Jan Ehrhardt Cc: PHP internals Content-Type: multipart/alternative; boundary="94eb2c18d62cb60cd10554de8fcc" Subject: Re: [PHP-DEV] Re: PHP 7.2.0 Beta 1 released From: rasmus@lerdorf.com (Rasmus Lerdorf) --94eb2c18d62cb60cd10554de8fcc Content-Type: text/plain; charset="UTF-8" On Fri, Jul 21, 2017 at 9:50 PM, Jan Ehrhardt wrote: > > I tried running Drupal7 with 7.2.0 Beta 1 and ran into a fatal error, > that does not happen under PHP 7.1.x (Windows, NTS, x64). I do not know > if it is a bug, an omission in UPGRADING or me looking with my nose. > Therefore I did not file a bugreport yet. > > The case: class RulesActionContainerUI has a public function form: > > public function form(&$form, &$form_state, $options = array(), $iterator > = NULL) { > > class RulesRuleUI extends RulesActionContainerUI with a public function > > public function form(&$form, &$form_state, $options = array()) { > > Bad programming, but no PHP ever stumbled over it. PHP 7.2.0 Beta 1 > issues a fatal error that RulesRuleUI::form must be compatible with > RulesActionContainerUI::form. IMHO a valid remark, but still a BC break. > Is this documented anywhere? Or should the Fatal Error become less > fatal? > This sounds strange. This hasn't changed in 7.2. It was the same in 7.1 and 7.0. Even in 5.6 and 5.5 it was an E_STRICT. Unless the Windows version has somehow drifted, but I don't see how that would be possible. Are you sure it isn't caused by something else? eg. 10:10pm thinkpad:~/php-src> cat -n g 1 php g Warning: Declaration of C::form(&$form, &$form_state, $options = Array) should be compatible with P::form(&$form, &$form_state, $options = Array, $iterator = NULL) in /home/rasmus/php-src/g on line 8 10:10pm thinkpad:~/php-src> php -v PHP 7.2.0-dev (cli) (built: Jul 21 2017 22:08:10) ( NTS ) 10:10pm thinkpad:~/php-src> sudo newphp 71 Activating PHP 7.1.3-dev (cli) (built: Feb 11 2017 09:40:56) ( NTS ) and restarting php-fpm 10:10pm thinkpad:~/php-src> php g Warning: Declaration of C::form(&$form, &$form_state, $options = Array) should be compatible with P::form(&$form, &$form_state, $options = Array, $iterator = NULL) in /home/rasmus/php-src/g on line 8 10:10pm thinkpad:~/php-src> php -v PHP 7.1.3-dev (cli) (built: Feb 11 2017 09:40:56) ( NTS ) -Rasmus --94eb2c18d62cb60cd10554de8fcc--