|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-07-13 09:59 UTC] cmb@php.net
[2020-07-15 01:13 UTC] taira dot 815 dot terashima at gmail dot com
[2020-07-15 01:14 UTC] taira dot 815 dot terashima at gmail dot com
[2020-07-15 07:46 UTC] nikic@php.net
[2020-07-15 09:46 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2020-07-15 09:46 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
Description: ------------ Running function intval using a string value more than a certain number (maybe DOUBLE MAX) returns 0. Test script: --------------- <?php // It returns 0. (This string value is 2^1024) $number = intval('179769313486231570772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216'); echo $number; Expected result: ---------------- INF Actual result: -------------- 0