Hi Filipe,

there is not the problem with your code, the script works fine and show "NULL".

I open this bug report : http://bugs.php.net/bug.php?id=46308
(I hope the title is correct... I did'nt know what to put...)

Thanks,
Olivier

Felipe Pena a écrit :
Hi Olivier,

That is weird, cannot you reproduce it using the code below?

<?php
class main
{
    public static $dataAccessor;
}

class relay
{
    public function __get($name)
    {
                main::$dataAccessor = 1;
    }
}

main::$dataAccessor = new relay();
var_dump(main::$dataAccessor->bar);

?>

Anyway, please file a bug report: http://bugs.php.net/report.php

Thanks.



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to