note 125757 added to function.md5

From: Date: Tue, 02 Feb 2021 13:37:27 +0000
Subject: note 125757 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-219306@lists.php.net to get a copy of this message
Regarding Ray Paseur's comment, the strings hash to: 0e462097431906509019562988736854 0e830400451993494058024219903391 The odds of getting a hash exactly matching the format /^0+e[0-9]+$/ are not high but are also not negligible. It should be added as a general warning for all hash functions to always use the triple equals === for comparison. Actually, the warning should be in the operators section when comparing string values! There are lots of warnings about string comparisons, but nothing specific about the format /^0+e[0-9]+$/. ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.166 (proxied: 2001:1970:4d21:dd00:9043:a41e:b108:6e12) ---- Manual Page -- http://php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/125757 Del: integrated -- https://master.php.net/note/delete/125757/integrated Del: useless -- https://master.php.net/note/delete/125757/useless Del: bad code -- https://master.php.net/note/delete/125757/bad+code Del: spam -- https://master.php.net/note/delete/125757/spam Del: non-english -- https://master.php.net/note/delete/125757/non-english Del: in docs -- https://master.php.net/note/delete/125757/in+docs Del: other reasons-- https://master.php.net/note/delete/125757 Reject -- https://master.php.net/note/reject/125757 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#219306) next »