[wp-trac] [WordPress Trac] #28559: ABSINT() returns bad result for large or long numbers

WordPress Trac noreply at wordpress.org
Thu Jun 26 18:34:08 UTC 2014


#28559: ABSINT() returns bad result for large or long numbers
--------------------------+------------------------------
 Reporter:  pbearne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by nacin):

 I have absolutely zero desire to work around these issues.

 absint() is simply a wrapper for (int) and abs(). What about all of the
 times we're already using (int) instead? What about all of the times we
 should be using (int) instead? I struggle to see us wanting to do anything
 along these lines. Do any other PHP projects decide to not trust int
 casts? Should we just abandon PHP at this point? Or abandon 32-bit
 systems? Or, hell, 64-bit systems?

 Cool bug, and an interesting mess, but wontfix.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28559#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list