php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80306 The address operation does not pass correctly.
Submitted: 2020-11-02 15:22 UTC Modified: 2020-11-02 15:28 UTC
From: ynj0iub4 at powerencry dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 7.4.12 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 - 5 = ?
Subscribe to this entry?

 
 [2020-11-02 15:22 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-02 15:28 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2020-11-02 15:28 UTC] requinix@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC