Bug #78365 [Opn->Nab]: concatenation operation resolution in assignment

From: Date: Fri, 02 Aug 2019 10:18:56 +0000
Subject: Bug #78365 [Opn->Nab]: concatenation operation resolution in assignment
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222064@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78365&edit=1 ID: 78365 Updated by: cmb@php.net Reported by: jcmargentina at gmail dot com Summary: concatenation operation resolution in assignment -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: Linux PHP Version: 7.3.8 -Assigned To: +Assigned To: cmb 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 <https://www.php.net/manual/en/language.operators.precedence.php> Previous Comments: ------------------------------------------------------------------------ [2019-08-02 09:56:58] jcmargentina at gmail dot com Description: ------------ The "assignment" operation (the = symbol) should be the last operation to be resolved. Test script: --------------- <?php $msg = "JOA" . isset($msg)?'OK':'X'; echo $msg; Expected result: ---------------- JOAX Actual result: -------------- OK ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78365&edit=1

« previous php.bugs (#222064) next »