That's exactly what it's used for.
-Original Message-
From: julienpa...@gmail.com [mailto:julienpa...@gmail.com] On Behalf Of jpauli
Sent: Monday, January 30, 2012 10:27 AM
To: Adi Mutu
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] zend guard
Quickly reading the source
Quickly reading the source and trying things, I suggest its a guard against
recursion in __get and __set handlers.
This way, code such this one won't infinitly loop :
class Foo {
public function __get($p) {
return $this->$p; // this should lead to a recursion loop
}
}
$f = new Foo
Hello,
Can anybody tell me what this struct is used for ?
I'm new to the internals of php.
Thanks,
A