Doc->Bug #73905 [Opn->Fbk]: operand problem
| From: | requinix@php.net | Date: | Tue, 10 Jan 2017 12:07:25 +0000 |
| Subject: | Doc->Bug #73905 [Opn->Fbk]: operand problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206460@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73905&edit=1
ID: 73905
Updated by: requinix@php.net
Reported by: m dot honar at gmail dot com
Summary: operand problem
-Status: Open
+Status: Feedback
-Type: Documentation Problem
+Type: Bug
-Package: PHP Language Specification
+Package: *General Issues
Operating System: ubuntu
PHP Version: 7.0.14
Block user comment: N
Private report: N
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Behavior has not changed. https://3v4l.org/DmW8j
Previous Comments:
------------------------------------------------------------------------
[2017-01-10 11:58:57] m dot honar at gmail dot com
Description:
------------
on all scripts language return false; but on php7.0.14 first cast to int and after check value :
>>> echo (0 == '---')? 'true':'false';
true
>>> echo (0 == '1---')? 'true':'false';
false
but this case === type checking operand:
>>> echo (0 === '---')? 'true':'false';
false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73905&edit=1