Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49920 invoked from network); 8 Apr 2010 22:48:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2010 22:48:16 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:42472] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/F1-54833-E2D5EBB4 for ; Thu, 08 Apr 2010 18:48:15 -0400 Received: by bwz8 with SMTP id 8so642491bwz.23 for ; Thu, 08 Apr 2010 15:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:received:message-id:subject:from:to :content-type; bh=TMN6NQnbhDKzznS2hd1kwGdjmw4WJy0s4iWfjkqagPo=; b=UPLyDljpzsjNxhsCRb5kNYOYK9IPeq0QctenwrTX036gzAZ/5XzFpmP6PwJnKSKBA7 JF7As0dYF+rsylk5WS+M/KHTMI/Ev4FK/pCdzWwykG5/mJ3f14fKRbHRNNuEIOf/KuUf nCvmgGgsMJ4aTlJTFSe0F6BSx2udKg3muFltI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=OUw3YJGSSDyWWo8vG7DibRs+klKlW0Mky9/kOMqP8lcseqoQKO/KTKbuSIEF0OgsjT gaHxjrtQBjqk43YbyKVaXOZXbkIvyiHBSQuSvtPWtr0YY9yLRf4DFubbAkOXiC+1ysIw zAQxKO66EYAJobMscoER+OrULpLiuhyza3SYE= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.204.55.11 with HTTP; Thu, 8 Apr 2010 15:48:11 -0700 (PDT) Date: Fri, 9 Apr 2010 00:48:11 +0200 X-Google-Sender-Auth: 24ab43bc22d20dc6 Received: by 10.204.23.15 with SMTP id p15mr888695bkb.115.1270766891781; Thu, 08 Apr 2010 15:48:11 -0700 (PDT) Message-ID: To: Internals , Philip Olson Content-Type: text/plain; charset=ISO-8859-1 Subject: [RFC] Removal of deprecated features From: kalle@php.net (Kalle Sommer Nielsen) Hey Everyone I've put together a simple RFC[1] that lists features thats been deprecated in 5.3, someone of them which I propose we remove in the next version of PHP, depending on the version number. Most of the features, which is listed below are taken from the old 6.0 NEWS[2] file, and items from the old PHP6 TODO[3]. safe_mode/register_globals/register_long_arrays/magic_quotes_*/allow_call_time_pass_reference - Something we have long time been wanted to remove from PHP, I don't see a big reason to keep those in the next version, even if its going to be a 5.4, since we already removed things like zend.ze1_compatibility_mode. See the magic quotes RFC[4]. define_syslog_variables and its associated function - Originally agreed to be removed in PHP6 during the 5.3 development, if there is no objects then I will remove by the end of this weekend. asp_tags - Proposed to be removed aswell, Tony had a patch for this[5]. sql_safe_mode - Theres currently an RFC in the works about this by Johannes[6]. session_register/session_is_registered/session_register - Only needed for register_globals, Hannes removed those in PHP6. enable_dl - Is this really worth keeping, since dl() was disabled on almost all SAPIs except for CLI/CGI/Embed? Support for Freetype 1 and GD 1 - Removed by Pierre in PHP6 Support for "continue" and "break" operators with non constant operands - Removed by Dmitry in PHP6. Undocumented and incomplete support for strings in list() operator - Removed by Dmitry in PHP6 aswell. detect_unicode/highlight_bg - Two ini values thats been marked as removed features from PHP6 in the manual. Not sure about detect_unicode, but highlight_bg is pretty pointless. y2k_compliance - From the manual "Enforce year 2000 compliance (will cause problems with non-compliant browsers)", we are in 2010, we should remove this option and enable it by default and remove the checks. Perhaps Derick got an insight here? Class named constructors - A feature thats been marked in the manual as something that would be removed in a future version of PHP6. It was not to be knowing ever decided to be kept or not, but now with the recent removal of them in namespaces then I don't see a big point in keeping them. If there is anything I forgot then let me know and I will add it to the RFC, else discussions away! [1] http://wiki.php.net/rfc/removal-of-deprecated-features [2] http://svn.php.net/viewvc/php/php-src/branches/FIRST_UNICODE_IMPLEMENTATION/NEWS?view=markup [3] http://wiki.php.net/todo/php60 [4] http://wiki.php.net/rfc/magicquotes [5] http://marc.info/?l=php-internals&m=117640641605813&w=2 [6] http://wiki.php.net/rfc/drop_sql.safe_mode -- regards, Kalle Sommer Nielsen kalle@php.net