[php-src] Issue #8264: '\0' is 0 or !0

From: Date: Mon, 28 Mar 2022 13:54:28 +0000
Subject: [php-src] Issue #8264: '\0' is 0 or !0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240530@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8264 Author: wuyx1 ### Description The following code: ``` <?php $str = '\0'; $n = 0; $flag = ($str == $n); echo $flag, "\n"; if ($str) { echo "yes\n"; } else { echo "no\n"; } ?> ``` Resulted in this output: ``` 1 yes ``` But I expected this output instead: ``` ``` ### PHP Version PHP5.4.16 ### Operating System centos7

« previous php.bugs (#240530) next »