Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105996 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86107 invoked from network); 20 Jun 2019 14:01:17 -0000 Received: from unknown (HELO thephantoms.co.uk) (176.126.243.54) by pb1.pair.com with SMTP; 20 Jun 2019 14:01:17 -0000 Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=exussum.co.uk; s=default; x=1561634170; h=Comment: DomainKey-Signature:Received:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To: References:Message-ID:User-Agent; bh=bj1Uv8yG9GWOvxLRKGQSGv96uCj U6qj+xfsvVbiqZA4=; b=ehrcFCjyBH88mx6vWWuLCSpJToSmp3NK+beXC1+7BT3 gzbB5Gmz7lzT6zbxlrcJqCW3dVge/zy12nz4ldDwZ6WomclsFiv6CcPQc1/6s7BQ 25yxZ7rZDMAg4tu10VTIH33stooNVH5HgCdA3puVmuqn3cjo2na4Hf32qyYXBO6o = Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=exussum.co.uk; h=Received:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:References:Message-ID:X-Sender:User-Agent; b=NfhUrb0Qhkwb4Ef51DoPFXeI3jGa1gCGlpQsF3ffvxhtZIDTaqHUGtBs8A65sW 1dcE/meGJEdUGPpZgh+JLlrgzXwIrO5mlVwWQkXisNeD9vVDPK3aqdcXh9uiJ5gH Bkz1hPAau+21Qn8Blz0RdaQjhKSH1814B1NauJGVxkjz8=; Received: (qmail 21201 invoked by uid 48); 20 Jun 2019 11:16:09 -0000 To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Jun 2019 12:16:09 +0100 In-Reply-To: <008001d526a0$a6ac24e0$f4046ea0$@jhdxr.com> References: <008001d526a0$a6ac24e0$f4046ea0$@jhdxr.com> Message-ID: <915e380060559713a30c524c13bcb264@exussum.co.uk> X-Sender: scott@exussum.co.uk User-Agent: RoundCube Webmail/0.1 Subject: RE: [PHP-DEV] [RFC] [Vote] Base convert changes From: scott@exussum.co.uk (Scott Dutton) Hi Chu, Its currently coded to treat that as 'ff' so any odd amount of '-' makes it negative, and any even amount is positive. Thanks Scott On 19.06.2019 14:12, CHU Zhaowei wrote: > 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 >> >> Hi all >> >> I have put my RFC base convert changes to vote this morning >> >> https://wiki.php.net/rfc/base_convert_improvements >> >> 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. >> >> Second vote is to allow negative numbers, eg base_convert('-FF', 16, >> 10) would return -255 (this returns 255 currently) >> >> Voting ends 3rd July >> >> Thanks >> >> Scott >> >> -- >> PHP Internals - PHP Runtime Development Mailing List To unsubscribe, >> visit: >> http://www.php.net/unsub.php >>