Re: Draft for bug-report-text addressing getclass()-problems
| From: | Stefan Neufeind | Date: | Tue, 17 Feb 2004 16:26:37 +0000 |
| Subject: | Re: Draft for bug-report-text addressing getclass()-problems | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-576@lists.php.net to get a copy of this message | ||
On 17 Feb 2004 at 17:18, Pierre-Alain Joye wrote:
> On Tue, 17 Feb 2004 16:11:43 +0100
> "Stefan Neufeind" <stefan@neufeind.net> wrote:
>
> > Solutions:
>
> is_a($a, 'DB'); is better imo.
The problem I have with that solution:
PHP 4 >= 4.2.0
It might be a good suggestion though, since most packages will
already need >= 4.2.0 I suppose. However we need to clearly put a
note there and should leave at least one solution in.
I'll add your is_a-solution as the first one under the heading
"Solutions", stating that this is the recommended way and give clear
note of the needed PHP-version needed. Also I'll add two other
examples (strtolower(...) and strcmp) as alternatives in case is_a is
unapplicable in a special package/case.
Stefan