|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-03-05 11:21 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
First, it's not a crash, but it is reproducable... Try this: <html> <body> <? if ($a) { echo "<h1>$a</h1>"; } ?> <form method=post> insert a big number here (12 digits beginning with a 5 or bigger): <input type="text" name="a" value="<?echo $a?>"> <input type="submit" name="test" value="Test!"> </form> </body> </html> Try it with 1234567890 and 12345678901 The second value prints 2147483647 It's a overflow problem. I think that php should treat webinput as strings until the variable is used. I'm assuming that php tries to guess the variable type