Hi Tim
> Isn't the destructor+exception example misleading? In that case the
> initial value of '$x' is constant, thus it should always be known to
> reflection, no?
>
> Should the example look like this:
>
> > function foo($y) {
> > $x = new Foo();
> > static $x = $y;
> > }
> >
> > try {
> > foo(42);
> > } catch (Exception) {}
>
> ?
Yes, your example makes more sense. In my old example the value of the
static variable was already assigned so didn't prove the point it was
trying to make. I adjusted the example in the RFC.
Thanks!
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php