Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1719 invoked from network); 20 Oct 2014 04:48:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2014 04:48:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.223.180 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.223.180 mail-ie0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:36060] helo=mail-ie0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/60-26850-70494445 for ; Mon, 20 Oct 2014 00:48:08 -0400 Received: by mail-ie0-f180.google.com with SMTP id x19so4010885ier.39 for ; Sun, 19 Oct 2014 21:48:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=r0MLGV/HEAmNddVn85yUMJoCrNOG103iEW7mQke4gyE=; b=bZDeT/u0vpGbCeG6t9khx9S3P717VNsetOoUrki6RPiLqy2DgQwa7ickQ2Bz2HNPnq 8NTHHZ1Ud545PQOIYUW12mfzExQqQFpSV+7tvJsfBrcTEwASj1+sxbhJEwkZqZCmI8fH EOLb/GlExJq5Jzz6YV0gxZKGTLSbZ+z8zATLrYe2JWs7MT4btXg6sMoCIafIYmDZLYmK 0TkKdCnoZwt2cFpaIHpaV0YENVwGzEzMaB5vMcSXKsW49nM4lqdZ797zlEuKOZ5oiOT7 0ixtP7aoP+wTnMKA66sqUapO5xbY6zKw4Vu74q58Z0Ty91m/hXujcfCwhUDTKxGUgN14 Fw0A== X-Gm-Message-State: ALoCoQmCc5Mmbg+4QXUJ3L1rXXAjL9pAbfgsT9iWx/DYl2+MxNrFJsJhYn23dVbZIhGc5np6CL5V MIME-Version: 1.0 X-Received: by 10.50.23.13 with SMTP id i13mr15608154igf.31.1413780484897; Sun, 19 Oct 2014 21:48:04 -0700 (PDT) Sender: me@daveyshafik.com Received: by 10.107.135.1 with HTTP; Sun, 19 Oct 2014 21:48:04 -0700 (PDT) Date: Mon, 20 Oct 2014 00:48:04 -0400 X-Google-Sender-Auth: FLtGKf1hv1nx2OvBwC-zwmKp9oE Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0158aa0e97d71d0505d36bc9 Subject: always_populate_raw_post_data E_DEPRECATED thrown by default From: davey@php.net (Davey Shafik) --089e0158aa0e97d71d0505d36bc9 Content-Type: text/plain; charset=UTF-8 Hey folks, A thread on reddit (here: https://www.reddit.com/r/PHP/comments/2jpzzj/php_56_throws_e_deprecated_by_default_for_no/) noted that in 5.6 there is an E_DEPRECATED thrown if "always_populate_raw_post_data" is set to anything but -1 There is an issue in that the default value is 0 (see: http://lxr.php.net/xref/PHP_5_6/main/main.c#641 I believe). This means that the E_DEPRECATED is always thrown in the default case, and if you've never cared about this setting, and don't use it, you may now be seeing an unnecessary warning. I'd like to set the default to -1. The php.ini-* files state: ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is ; to disable this feature and it will be removed in a future version. ; If post reading is disabled through enable_post_data_reading, ; $HTTP_RAW_POST_DATA is *NOT* populated. ; http://php.net/always-populate-raw-post-data ;always_populate_raw_post_data = -1 Being as the current default is not to populate it, and (currently) -1 has the same affect and also suppresses the E_DEPRECATED, I don't think this change is a BC issue. The other option is to only throw the E_DEPRECATED when it's set to 1 (as you are actively trying to use the feature). Thoughts? Thanks, - Davey --089e0158aa0e97d71d0505d36bc9--