Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103789 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4822 invoked from network); 23 Jan 2019 11:24:12 -0000 Received: from unknown (HELO vie01a-dmta-pe06-3.mx.upcmail.net) (84.116.36.16) by pb1.pair.com with SMTP; 23 Jan 2019 11:24:12 -0000 Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1gmDU2-0004LL-0H for internals@lists.php.net; Wed, 23 Jan 2019 09:02:02 +0100 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id mDR8g9YQi2WSsmDR8grKie; Wed, 23 Jan 2019 08:59:02 +0100 X-Env-Mailfrom: markus@fischer.name X-Env-Rcptto: internals@lists.php.net X-SourceIP: 213.47.8.56 X-CNFS-Analysis: v=2.3 cv=E7kcWpVl c=1 sm=1 tr=0 a=UsP8JIz990cEySE/ILGzbQ==:117 a=UsP8JIz990cEySE/ILGzbQ==:17 a=IkcTkHD0fZMA:10 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=3JhidrIBZZsA:10 a=2EALvoLjsrEA:10 a=ZZnuYtJkoWoA:10 a=JSAsEq0BmK597h2UExsA:9 a=QEXdDO2ut3YA:10 Received: from mail02.home ([192.168.1.14] helo=the-matrix-has-you.local) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1gmDR7-0005YC-EP for internals@lists.php.net; Wed, 23 Jan 2019 08:59:02 +0100 To: internals@lists.php.net References: Message-ID: <58394265-3a8f-a15c-4891-7d5e7ccb9534@fischer.name> Date: Wed, 23 Jan 2019 08:59:01 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, On 22.01.19 21:34, Girgias wrote: > - phpversion (use PHP_VERSION constant) The function takes an optional argument `string $extension`, what is the replacement for that? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-CMAE-Envelope: MS4wfMEuZBcXtUzABbEoZIWTq3eZ0/q5v5FH/y4pJ0c+VT2UNUvJQRO99trZ6+k7fnptQJ5gCrdknvFa6aNhng5keuAdl/pQ34Wva3slvV7CS8hesT3MFZoJ ccx5HE56kxtpm2Vu7qyIbTh9AazjckGRTo2TKAj0v9ha1vjvdmL+t34A Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: markus@fischer.name (Markus Fischer) Hi, On 22.01.19 21:34, Girgias wrote: > - phpversion (use PHP_VERSION constant) The function takes an optional argument `string $extension`, what is the replacement for that? > - intval (for arbitrary base change there exists the math function > base_convert) I've seen and myself use the following construct a lot to "quickly" convert data within an array: $data = array_map('intval', $data); It's really practical because I don't have to write a (more verbose) closure. I'd argue this applies to the other `*val` calls too. > - join (alias of implode) > > Old signatures: > > - implode (historical signature) Is there a correlation here why you mention the alias join and the actual function implode? I hope you would want to leave either in the language :-) cheers, - Markus