|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-09 22:51 UTC] rasmus@php.net
[2009-11-09 23:06 UTC] saber_lowbob at live dot de
[2009-11-09 23:15 UTC] saber_lowbob at live dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
Description: ------------ a bug(?) in the time() function Reproduce code: --------------- function isInt($string) { $string = preg_replace('[0-9]','',$string); if($string == '') { return true; } else { return false; } } if(isInt(time())) { echo "is Int"; } else { echo "is not Int"; } Expected result: ---------------- is Int Actual result: -------------- is not Int