ID:               26093
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bruno dot faust at ig dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: XP SP1 latest
 PHP Version:      4.3.3
 New Comment:

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.



Previous Comments:
------------------------------------------------------------------------

[2003-11-03 05:27:04] bruno dot faust at ig dot com dot br

Description:
------------
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"]];

print_r($arr_estado);

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

Expected result:
----------------
Array
(
    [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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26093&edit=1

Reply via email to