Re: Re: is_a() calls in PEAR.php

From: Date: Fri, 07 May 2004 10:24:18 +0000
Subject: Re: Re: is_a() calls in PEAR.php
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28943@lists.php.net to get a copy of this message
Michael Wallner wrote:
Hi Thorsten Suckow-Homberg, you wrote: [...] You may have misunderstood my question, Thorsten. I didn't ask "what is_a() does", but what intention these calls have in the PEAR class. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ So, once again: Why does PEAR check for (isset($this) && is_a($this, 'PEAR')? What should it else be than "a PEAR"? Regards,
It seems to be me that it's just a test to see if it's being called statically. However, if the PEAR class was extended, $this would be the name of the extension class. Regards, David

« previous php.pear.dev (#28943) next »