Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3854 invoked by uid 1010); 30 Oct 2004 05:56:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3767 invoked from network); 30 Oct 2004 05:56:48 -0000 Received: from unknown (HELO prohost.org) (216.126.86.27) by pb1.pair.com with SMTP; 30 Oct 2004 05:56:48 -0000 Received: (qmail 21850 invoked from network); 30 Oct 2004 05:56:47 -0000 Received: from cpe0050bad46dce-cm000f9f7d6664.cpe.net.cable.rogers.com (HELO ?192.168.1.101?) (@69.196.31.138) by prohost.org with SMTP; 30 Oct 2004 05:56:47 -0000 Message-ID: <41832D13.7010308@prohost.org> Date: Sat, 30 Oct 2004 01:56:35 -0400 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derick Rethans , cellog@php.net, internals@lists.php.net References: <418294D9.4070700@prohost.org> <20041029193421.9557.qmail@pb1.pair.com> In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Negative string offset support From: ilia@prohost.org (Ilia Alshanetsky) Derick Rethans wrote: > How can you *need* this, you can use substr() just fine. Almost no peace of functionality in PHP in unique, some extensions duplicate core/standard functionality and vice versa. Usually the "core" offers a simpler access to a resource and full pledged extensions gives the full capabilities. The best example of this is streams, sockets extension and cURL. On a similar note, most users don't use even 1/2 the functionality PHP offers, does it mean we should remove those parts of the language or not have add them in the 1st place? Just because substr() or $a[strlen($a) - 1] would work, it does not mean they are the most optimal approaches. The change to permit negative string offsets would require @ most 2-3 line change in Zend and it would be trivial to write a series of tests to cover the affected code. We are not talking about a major change here. Ilia