__string_value() crashes with return
| From: | Gustafson, Mårten | Date: | Wed, 30 Aug 2000 14:06:49 +0000 |
| Subject: | __string_value() crashes with return | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31257@lists.php.net to get a copy of this message | ||
Following snippet causes crash.
<?php
class a
{
function __string_value()
{
return false;
}
}
$a = new a;
echo $a;
?>
Aren´t one allowed to have return in __string_value()?
regards
Marten