php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40486 dechex additional parameter
Submitted: 2007-02-14 21:31 UTC Modified: 2017-03-15 00:11 UTC
Votes:3
Avg. Score:2.7 ± 1.2
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: john dot meskes at senecac dot on dot ca Assigned: pollita (profile)
Status: Closed Package: Math related
PHP Version: 5.2.1 OS:
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 - 42 = ?
Subscribe to this entry?

 
 [2007-02-14 21:31 UTC] john dot meskes at senecac dot on dot ca
Description:
------------
add 2nd parameter to dechex( , int size) such that
dechex(15,4) gives 000f
dechex(-1,16) gives ffffffffffffffff
dechex(-1,2) gives ff
dechex(1025,2) gives ? (either 401, 01, ff, or false)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:58 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Math related
 [2017-03-15 00:11 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2017-03-15 00:11 UTC] pollita@php.net
Trivially implemented in userspace.

https://3v4l.org/8J7Nk
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 08:01:27 2024 UTC