Bug #80306 [Opn->Nab]: The address operation does not pass correctly.

From: Date: Mon, 02 Nov 2020 15:28:11 +0000
Subject: Bug #80306 [Opn->Nab]: The address operation does not pass correctly.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230064@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80306&edit=1 ID: 80306 Updated by: requinix@php.net Reported by: ynj0iub4 at powerencry dot com Summary: The address operation does not pass correctly. -Status: Open +Status: Not a bug Type: Bug Package: Unknown/Other Function Operating System: Linux PHP Version: 7.4.12 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.references.php Previous Comments: ------------------------------------------------------------------------ [2020-11-02 15:22:23] ynj0iub4 at powerencry dot com Description: ------------ The address operation does not pass correctly. Test script: --------------- <?php $a = 10; $b = 20; $i = &$a; $s = &$i; $i = &$b; // ? var_dump($s); // The output here should be 20. Expected result: ---------------- 20 Actual result: -------------- 10 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80306&edit=1

« previous php.bugs (#230064) next »