Re: [Template] Design issues

From: Date: Mon, 14 Jun 2004 04:25:44 +0000
Subject: Re: [Template] Design issues
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30621@lists.php.net to get a copy of this message
Hans Lellelid wrote:
Paul M Jones wrote:
On Jun 12, 2004, at 9:52 PM, Hans Lellelid wrote:
Justin Patrin wrote:
Two notes: If we stay with PEAR_Error, we'll need a strtolower() on the is_a().
Nope :) php5 -r "var_dump(is_a(new stdclass, 'STDCLASS'));" Regards,
But not for PHP4.
That evaluates just as bool(true) for me in PHP4 as it does in PHP5.
Wait -- does is_a() suffer from the same case-lowering issue as get_class()? If not, that's my mistake, and my note about strtolower() won't be needed.
I think the basic rule is that the only time case comes into the picture is in the functions that return a method or class name: e.g. get_class(). The other methods that check things -- like is_a(), method_exists(), etc. do not care about case. There might be an exception to this, but I don't know of one. Hans
Oops, I guess I was mistaken. I should have tried it first. :-| -- paperCrane <Justin Patrin>

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