Req #81456 [Opn->Nab]: chr(48) is falsy

From: Date: Sat, 18 Sep 2021 06:03:18 +0000
Subject: Req #81456 [Opn->Nab]: chr(48) is falsy
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236674@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81456&edit=1

 ID:                 81456
 Updated by:         requinix@php.net
 Reported by:        gib-o-master at mail dot ru
 Summary:            chr(48) is falsy
-Status:             Open
+Status:             Not a bug
 Type:               Feature/Change Request
 Package:            *General Issues
 PHP Version:        8.0.10
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------
[2021-09-18 05:26:58] gib-o-master at mail dot ru

Description:
------------
previous was marked as spam. this is a language problem, not spam.

Test script:
---------------
if (chr(48)) {
    echo 'never happen';
}

if (chr(0)) {
    echo 'always happen';
}

Expected result:
----------------
never happen
always happen

Actual result:
--------------
always happen


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81456&edit=1


Thread (9 messages)

« previous php.bugs (#236674) next »