Re: [RFC] E_DEPRECATED
| From: | Jasper Bryant-Greene | Date: | Tue, 24 Oct 2006 07:21:41 +0000 |
| Subject: | Re: [RFC] E_DEPRECATED | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26220@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
> On Tue, 24 Oct 2006, Edin Kadribasic wrote:
>> Writing mydb_fetch_object() becomes impossible in
>> userspace if we go this far. It would also make any legal use of
>> stdClass impossible.
>
> Yes, but in the "strict" world, there is no legal use for stdClass in
> the first place.
I've got to agree with this and Derick's other points. I've written or
been involved in writing a great many larger PHP applications, all of
which have aimed to be E_STRICT clean, and have never, ever used stdClass.
I can't see a reason why you would want to, as it's effectively an
associative array with syntax that fools people into thinking you're
writing OO code :>
As to mydb_fetch_object()... what was wrong with mydb_fetch_assoc()?
What does mydb_fetch_object() add to it other than aforementioned syntax
that pretends to be OO?
--
Jasper Bryant-Greene
Director
Album Limited
jasper@albumltd.co.nz
+64 21 708 334 / 0800 425 286
http://www.albumltd.co.nz/