Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65273 invoked from network); 17 Jul 2018 05:35:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2018 05:35:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 104.47.41.98 cause and error) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 104.47.41.98 mail-dm3nam03on0098.outbound.protection.outlook.com Received: from [104.47.41.98] ([104.47.41.98:53184] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/83-37178-B008D4B5 for ; Tue, 17 Jul 2018 01:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q7bCk/z20F7s+5fBkl8+yqKe631E2hcTunttQR2sRrw=; b=OSF4fOS4ai6E8GoRkKHbL7pciFN0OL1CLo3GJTG/7chYdnStuXXk9aq1tzm2p/pGVLDFk1hWQKpZKMeIU8VPqLOlQhp9E+5QsSRuEAbBZRqR62+jR+yFiw7GEtoxl5Clpm52qUJF3Ay28wYW392HfVhojkwmSDJaBc5Xk0j+Iwc= Received: from BL0PR02MB4435.namprd02.prod.outlook.com (10.167.179.24) by BL0PR02MB4820.namprd02.prod.outlook.com (52.132.14.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.20; Tue, 17 Jul 2018 05:35:03 +0000 Received: from BL0PR02MB4435.namprd02.prod.outlook.com ([fe80::1dcf:21e4:1c5e:2ccc]) by BL0PR02MB4435.namprd02.prod.outlook.com ([fe80::1dcf:21e4:1c5e:2ccc%2]) with mapi id 15.20.0952.021; Tue, 17 Jul 2018 05:35:03 +0000 To: Levi Morrison CC: internals Thread-Topic: [PHP-DEV] Replacing array_slice Thread-Index: AQHUHYRTW4EKoImTXka+XDibo5UKgKSS5Mr+ Date: Tue, 17 Jul 2018 05:35:03 +0000 Message-ID: <1A9B9639-2425-450D-81EE-81059E725617@zend.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [84.109.129.203] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR02MB4820;7:u6cIHm3LzQd7ZicsgLLFka6eny3+dJTzLTKt3j2INhutkzGpEDIZ3p5BvvUlj5toMTgOEF5G0MnbMxfiNlQmaCkJ9MmsuuJqdkYt+8oTpryl7T+zAXtquskgx0e4/hSA3vfhXLNg9ZSjpOtrEVhRtejoHv7YVLM30mg+Al2T5m4m734KNe+DmrcJkclWs+G9GuOYMlpaShfxkiiewkoKgqHBs+8NCd2Dm6Gj3GdPNH1FXY/z92t42IQKTUuAmoSt x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ec827fd3-90f7-4c0b-117d-08d5eba70c09 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:BL0PR02MB4820; x-ms-traffictypediagnostic: BL0PR02MB4820: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zeev@zend.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:BL0PR02MB4820;BCL:0;PCL:0;RULEID:;SRVR:BL0PR02MB4820; x-forefront-prvs: 073631BD3D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(376002)(396003)(39850400004)(366004)(136003)(189003)(199004)(81166006)(26005)(25786009)(8936002)(316002)(6512007)(99286004)(256004)(186003)(83716003)(102836004)(486006)(6246003)(2906002)(97736004)(6506007)(66066001)(53546011)(86362001)(478600001)(81156014)(53936002)(4326008)(5250100002)(446003)(82746002)(7736002)(6116002)(3846002)(305945005)(14454004)(68736007)(6916009)(11346002)(76176011)(105586002)(106356001)(5660300001)(33656002)(476003)(229853002)(2616005)(36756003)(6436002)(6486002)(8676002)(2900100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR02MB4820;H:BL0PR02MB4435.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: LCfEMwUjucvEuoC0rgq+0xDQ6Pk1Pecv6WU6TPXCI73nadbld26Pb1QqfdHukJR9M2/OCqLvwJ0P4EPksr4+ZTVblbRZkZ5L/c9uSh6meGMgZXaOOqJY143Rxzm5oUEzGHTeODeWPhXhqgJOqLoKTP9KTjc3KUgVUOya8jQNX1oOsI51rAReDTNnrmDw3aoBON9TrTcDlfJ07SCaq8OrZkHMVIOeMQl2wVhByZUNn4/c979xLEDRBLhu/T7zIlzD+MgKLslAvYqFyspzCUOds9TX5GktpOL+yIJLry8E5CrLT2cTroddIr4jMaqA0KymLUFTGUtMXkYuxk6HphvfRQlg/HEiJFfjDgS0lhfeGLo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec827fd3-90f7-4c0b-117d-08d5eba70c09 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2018 05:35:03.5609 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4820 Subject: Re: [PHP-DEV] Replacing array_slice From: zeev@zend.com (Zeev Suraski) > On 17 Jul 2018, at 7:12, Levi Morrison wrote: >=20 > Fixing `array_slice` would probably do more harm than good at this > stage. Instead I would like to provide an alternative function that > does not have all this baggage, and will have decent performance much > of the time. The best ideas I have for names are not that great: >=20 > - `array_real_slice`? > - `array_slice2`? array_carve()? array_chisel()? Zeev