Re: Just checking something before posting a bug report
| From: | Paweł Stradomski | Date: | Wed, 26 Sep 2007 18:48:59 +0000 |
| Subject: | Re: Just checking something before posting a bug report | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32448@lists.php.net to get a copy of this message | ||
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