Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105989 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38129 invoked from network); 19 Jun 2019 15:58:01 -0000 Received: from unknown (HELO smtpbg65.qq.com) (103.7.28.233) by pb1.pair.com with SMTP; 19 Jun 2019 15:58:01 -0000 X-QQ-mid:Yeas1t1560949952t075t52785 Received: from 14D73359B2E14ADDB4DDC3857AE32898 (me@jhdxr.com [220.255.44.152]) X-QQ-SSF:00000000000000F0F61000000000000 To: "'Scott Dutton'" , References: In-Reply-To: Date: Wed, 19 Jun 2019 21:12:30 +0800 Message-ID: <008001d526a0$a6ac24e0$f4046ea0$@jhdxr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: zh-cn Thread-Index: AQJda+q22IzbodzEefD9Q9iEVO4VhqWSaW6Q X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:jhdxr.com:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: RE: [PHP-DEV] [RFC] [Vote] Base convert changes From: me@jhdxr.com (=?utf-8?b?Q0hVIFpoYW93ZWk=?=) Hi Scott, Could you clarify what will happen if multiple negative sign occurs. I = didn't find it in the RFC. e.g. base_convert('--ff', 16, 10) Thanks, CHU Zhaowei > -----Original Message----- > From: Scott Dutton > Sent: Wednesday, June 19, 2019 3:24 PM > To: internals@lists.php.net > Subject: [PHP-DEV] [RFC] [Vote] Base convert changes >=20 > Hi all >=20 > I have put my RFC base convert changes to vote this morning >=20 > https://wiki.php.net/rfc/base_convert_improvements >=20 > Two votes, one to raise a deprecated error in PHP7.4 (raised to = exception in PHP > 8) when base_convert encounters something it doesnt know how to = convert. >=20 > Second vote is to allow negative numbers, eg base_convert('-FF', 16, > 10) would return -255 (this returns 255 currently) >=20 > Voting ends 3rd July >=20 > Thanks >=20 > Scott >=20 > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, = visit: > http://www.php.net/unsub.php >=20