Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59469 invoked from network); 8 Mar 2014 21:36:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2014 21:36:07 -0000 Authentication-Results: pb1.pair.com header.from=marco@m-s-d.eu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=marco@m-s-d.eu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain m-s-d.eu from 209.85.223.182 cause and error) X-PHP-List-Original-Sender: marco@m-s-d.eu X-Host-Fingerprint: 209.85.223.182 mail-ie0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:37034] helo=mail-ie0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/B1-44862-64D8B135 for ; Sat, 08 Mar 2014 16:36:06 -0500 Received: by mail-ie0-f182.google.com with SMTP id y20so5824365ier.27 for ; Sat, 08 Mar 2014 13:36:03 -0800 (PST) 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=MRJLbklHxHdHjdxJ6QPkrC5jbeSNUpQjR/pP6Tykn6g=; b=gnpdE0W7vXOGPcyywBxfyFYgrWqm+/psWCBqbIf3wB8ri5uYGlpoZ+iaNjYITJ9mYg 1u/u5VdXZgBZRisWoOjlB9Wi+SYm8k2OPVNWdozT7L3IyszEbghWg3GaKY/Ewzm9qb2x DQE1O5a9Qs7a1blYoBCQxDFuunvMjrDaJhosr07ozrBGN36D+8t0yxOK92fVfvlOZPMJ 9REQNqUFcqLBQcACaTd709erP7POlIgQ20es0MmKoo58LrCVNTiJZVxVm+gDvce5HmmB 7zb1sK0TeenJPrs4bL1DvGITP/JtdyNlxfA3DyAR5ffDTMvvMx6n1roLSslNMHzpj5tl Qq6Q== X-Gm-Message-State: ALoCoQlSVd7xXJTTKmWfG74ph1CLrsojQaGrCm4gds3hV1T7V1ZjDR1WgtMTrwDgrqhUb0dhdb21 MIME-Version: 1.0 X-Received: by 10.42.214.80 with SMTP id gz16mr21400343icb.6.1394314563557; Sat, 08 Mar 2014 13:36:03 -0800 (PST) Sender: marco@m-s-d.eu Received: by 10.64.165.166 with HTTP; Sat, 8 Mar 2014 13:36:03 -0800 (PST) X-Originating-IP: [84.153.66.192] Date: Sat, 8 Mar 2014 22:36:03 +0100 X-Google-Sender-Auth: r00ElQijKaehFYOk1JyhjiXOnVE Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: Idea: ifdef-like feature to ease userland BC From: marco+php@m-s-d.eu (Marco Schuster) Hi Internals, especially with (radical) userland API changes coming up in PHP6, might I suggest something like a ifdef feature which turns blocks of code into comments? This would allow framework authors to provide backwards compatibility with "older" PHP versions while being able to take advantage of new PHP features. In theory, it could also be supplied as "update" to the already existing minor versions (5.4,5.5 and 5.6) so that these versions can also use the new code.