Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59556 invoked from network); 27 Jan 2016 14:51:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2016 14:51:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:37175] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/F9-28185-B59D8A65 for ; Wed, 27 Jan 2016 09:51:07 -0500 Received: by mail-wm0-f48.google.com with SMTP id n5so30172328wmn.0 for ; Wed, 27 Jan 2016 06:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=zOvyYTUq2VXQ6LoXhYf103/wS/SXAn0C0gqkYN1U87c=; b=KfIj8eX4rq7DS+NAe6EC6+n/uQfETSZv7FAdV88P+2j6lojB7OMHegxIYtqnm84WyO Qd941NSM1vDywX2O4hmAGzLtUN3cnZr50/wRG9I3wyU7TH82esezNofzpMIZjH23JEph 1KefcjXIYMrK7XXpFLZ8+ezqeuf60Z31GpCzaJ7fHlAQbeR0GXzsXP9BNc8Sy+qRROox kkICxqYrGpMs1uC3+UCOZJmGiqMFyR8SUWggvoU7wdBKf5/wkXqS/6HgV/Bi/mio/CB/ a+H15tU/hdFzRE1WJil63WB9LQnpb5uscoudlwK6Zdr9LRSEEMF/2liW4wuV6cdmsfnR P7uA== 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:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=zOvyYTUq2VXQ6LoXhYf103/wS/SXAn0C0gqkYN1U87c=; b=Ong5lzTVNWFM3EOB/Pb9nN82d+F+ilEm2w8gDJuwYqqUdGfWi2B4neKxkW61LiXKXX kJU9tjJKwZ/7JnWhzNuF1wbIJaxL1gMjANmtQZcx3UlJYeKhY3/BQbu2qM3fhUmul17Q vAHTJco98TSrAkiYNvsMTRXcd/OakgT4PbPQ2zp6QdIpkIM12CnS1iluEA69fGCoFd/Q lWFyieDbQ4/D0qiQjAARv/qV3d4C3H7kaSYcEFhYnpT4mBKh/vFTdeRLq9tpm/3fT4BA cweRTdqQSUoQevIkUdysk/NffyKKSFRC9Ty36TmrdUXSIp/F1blGQI3/MoXZVBtnu9bh UF9Q== X-Gm-Message-State: AG10YOQKrct7XulWowRtzfxqB6EYIvgATN5rbMS3XhirWvTBO4kFvO8QIANCKHWfNUwCU3GrXPJ2CbQRW3flUQ== X-Received: by 10.28.55.209 with SMTP id e200mr32171505wma.2.1453906265191; Wed, 27 Jan 2016 06:51:05 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.194.80.42 with HTTP; Wed, 27 Jan 2016 06:50:25 -0800 (PST) In-Reply-To: <56A63522.1070807@php.net> References: <56A3A01F.1020500@php.net> <05.16.03822.D5AE3A65@pb1.pair.com> <56A63522.1070807@php.net> Date: Wed, 27 Jan 2016 15:50:25 +0100 X-Google-Sender-Auth: 0ooZHmkULPUbwVc5Ntb9nm3CYtk Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: Andrea Faulds , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [RFC] Generalize support of negative string offsets From: jpauli@php.net (Julien Pauli) On Mon, Jan 25, 2016 at 3:45 PM, Fran=C3=A7ois Laupretre = wrote: > Hi Andrea, > > Le 23/01/2016 22:10, Andrea Faulds a =C3=A9crit : >> >> >> Er, ignore what I just said. Negative string offsets are actually >> special-cased and always produce an "Unitialized string offset" or >> "Invalid string offset" notice. So our current behaviour is in fact >> completely useless, not just mostly. :) > > > Thanks for your comments. Following your suggestion, I just added some > examples of negative offset usage. > > About BC breaks, the RFC just adds support for currently-invalid values. = In > every cases, these values would have generated a notice or a warning, and > the value would have been considered as zero. So, I consider these BC bre= aks > as minor because of error messages. But determining if such BC breaks are > compatible with a minor release will be the main objective of the vote. > > Regards > > Fran=C3=A7ois > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Hi ! I like it very much. It is not far from an idea I got in my head since a long time : allowing string references and C-like character handling in PHP, but this would require a deep engine patch I've not worked on it yet. Anyway, happy consistency :-) Julien.P