Re: Beta 4 RC 1
| From: | Stephane Drouard | Date: | Thu, 12 Feb 2004 14:33:43 +0000 |
| Subject: | Re: Beta 4 RC 1 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7783@lists.php.net to get a copy of this message | ||
== Quote from Andi Gutmans (andi@zend.com)'s article
> I rolled a preliminary beta 4 package just to make sure nothing is
> seriously broken. You can still commit fixes in the next few hours and if I
> don't hear of any serious show stoppers, I'll re-bundle and release beta 4
> later today.
Andi,
Not a big issue, but a different behaviour compared with beta3 and some following snapshots.
<?
class Test {
function __set($n, $v) {
throw new Exception('error');
}
}
function f() {
$o = new Test();
$o->foo = 5;
}
f();
?>
Reports:
Fatal error: Uncaught exception 'exception' with message 'error' in
/var/www/html/set.php:5
Stack trace:
#0 /var/www/html/set.php(11): Test->__set()
#1 /var/www/html/set.php(11): f()
#2 /var/www/html/set.php(14): f()
#3 {main}
thrown in /var/www/html/set.php on line 5
There is an additional #1 in the stack trace.
When executed outside the context of a function, the reported function is "unknown()".
This also happens with __get, __toString, __call and __clone. But not with __construct and
__destruct.
Regards,
Stephane