|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26093 access variable cause access violation
Submitted: 2003-11-03 05:27 UTC Modified: 2003-11-03 05:33 UTC
From: bruno dot faust at ig dot com dot br Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.3 OS: XP SP1 latest
Private report: No CVE-ID: None
 [2003-11-03 05:27 UTC] bruno dot faust at ig dot com dot br
when y execute the php code i get "PHP has encountered an Access Violation at 010E28D2"

when y modify "=&" - second "=&" - to "=", thats all ok.

Reproduce code:
class name
	function load($name)
		$file = "./name/" . $name . ".srlz";
		return unserialize(file_get_contents($file));

$class_name =& new name;

$arr_estado =& $class_name->load("pais_estado");
$arr_estado =& $arr_estado[$_POST["usr_endereco"][$x]["pais_id"]];


short example.
this example has not crash.
my pages is very longer....

Expected result:
    [1] => Acre
    [2] => Alagoas
    [24] => Santa Catarina
    [25] => S?o Paulo
    [26] => Sergipe
    [27] => Tocantins

Actual result:
PHP has encountered an Access Violation at 010E28D2


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-03 05:33 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Don't try to return anything other than a real variable by reference.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 30 03:01:24 2020 UTC