note 130182 added to class.bcmath-number

From: Date: Sun, 23 Mar 2025 03:49:41 +0000
Subject: note 130182 added to class.bcmath-number
Groups: php.notes 
Request: Send a blank email to php-notes+get-222014@lists.php.net to get a copy of this message
BcMath\Number is one of those classes that overloads boolean casting. If $z = new BcMath\Number(0) then $z is considered falsy (and hence, for example, empty($z)==true) even though it is a genuine Number object. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 222.153.169.88) ---- Manual Page -- https://php.net/manual/en/class.bcmath-number.php Edit -- https://main.php.net/note/edit/130182 Del: integrated -- https://main.php.net/note/delete/130182/integrated Del: useless -- https://main.php.net/note/delete/130182/useless Del: bad code -- https://main.php.net/note/delete/130182/bad+code Del: spam -- https://main.php.net/note/delete/130182/spam Del: non-english -- https://main.php.net/note/delete/130182/non-english Del: in docs -- https://main.php.net/note/delete/130182/in+docs Del: other reasons-- https://main.php.net/note/delete/130182 Reject -- https://main.php.net/note/reject/130182 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222014) next »