Req #81455 [Opn->Spm]: '0' is falsy

From: Date: Sat, 18 Sep 2021 00:00:21 +0000
Subject: Req #81455 [Opn->Spm]: '0' is falsy
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236671@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81455&edit=1 ID: 81455 Updated by: requinix@php.net Reported by: gib-o-master at mail dot ru Summary: '0' is falsy -Status: Open +Status: Spam Type: Feature/Change Request Package: *General Issues PHP Version: 8.0.10 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2021-09-17 23:55:43] gib-o-master at mail dot ru Description: ------------ # truthy string is non-empty string in JS/Python, # why: if ('0') { echo 'never happen'; } Expected result: ---------------- never happen ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81455&edit=1

« previous php.bugs (#236671) next »