note 127872 added to function.pow

From: Date: Fri, 28 Oct 2022 20:52:05 +0000
Subject: note 127872 added to function.pow
Groups: php.notes 
Request: Send a blank email to php-notes+get-219824@lists.php.net to get a copy of this message
Some inconsistency in PHP 7 & 8 (probably others as well): - pow(0,0) returns 1 (integer) - "==" comparing '1e0' to the integer 0, returns false - "==" comparing '0e0' to the integer 0, returns true <-- this seems like a PHP defect ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 73.170.37.250) ---- Manual Page -- https://php.net/manual/en/function.pow.php Edit -- https://main.php.net/note/edit/127872 Del: integrated -- https://main.php.net/note/delete/127872/integrated Del: useless -- https://main.php.net/note/delete/127872/useless Del: bad code -- https://main.php.net/note/delete/127872/bad+code Del: spam -- https://main.php.net/note/delete/127872/spam Del: non-english -- https://main.php.net/note/delete/127872/non-english Del: in docs -- https://main.php.net/note/delete/127872/in+docs Del: other reasons-- https://main.php.net/note/delete/127872 Reject -- https://main.php.net/note/reject/127872 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219824) next »