Martin Alterisio wrote
> <?php
> class Foo {
>     static public $foo;
>
>     function __toString() {
>         self::$foo = $this;
>         return 'foo';
>     }
> }
>
> $foo = (string) new Foo();
> var_dump(Foo::$foo);
> ?>

Got even stranger result here:
string(3) "foo"
ALERT - canary mismatch on efree() - heap overflow detected 
(attacker 'REMOTE_ADDR not set', file 'unknown')

So I confirm your problem (var_dump should report object, not string).

-- 
Paweł Stradomski

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

Reply via email to