Bug #64658 [Opn->Nab]: BOOLEAN TO VARIABLE RETURN ILOGICAL VALUE
Edit report at https://bugs.php.net/bug.php?id=64658&edit=1
ID: 64658
Updated by: johannes@php.net
Reported by: mrsnikivan at gmail dot com
Summary: BOOLEAN TO VARIABLE RETURN ILOGICAL VALUE
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: WINDOW XP
PHP Version: Irrelevant
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
See operator precedence - http://php.net/operators.precedence AND comes after =
This allows code like
$conn = mysql_connect() or die("Error");
Previous Comments:
------------------------------------------------------------------------
[2013-04-17 15:33:21] mrsnikivan at gmail dot com
Description:
------------
I AM USING XAMPP PHP, using assing
$A= 1==1 AND 2==2; RETURN TRUE
$A= 1==1 AND 2==7; RETURN ILOGICAL, RETURN TRUE (TRUNCATE IN AND)
$A= (1==1 AND 2==7); RETURN FALSE
$A= 1==2 AND 2==2; RETURN FALSE
Test script:
---------------
Expected result:
----------------
No truncate assign into instruction "and"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64658&edit=1
Thread (2 messages)