RE: [PHP-DEV] [RFC] [Vote] Base convert changes

From: Date: Wed, 19 Jun 2019 13:12:30 +0000
Subject: RE: [PHP-DEV] [RFC] [Vote] Base convert changes
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-105989@lists.php.net to get a copy of this message
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 <scott@exussum.co.uk> > 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 >

« previous php.internals (#105989) next »