Re: Question
| From: | Johannes Schlüter | Date: | Mon, 25 Mar 2013 11:57:44 +0000 |
| Subject: | Re: Question | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-10464@lists.php.net to get a copy of this message | ||
On Sun, 2013-03-24 at 20:59 -0300, Cesar D. Rodas wrote:
>
> > I think there is a term "resource" which is misunderstood, as what
> you
> > mean by that is the Resource class. PHP resource type is something
> else.
>
> I register a new resource type, anyway is not a bad idea to wrap
> resources inside classes/objects.
Using resources is bad.
They are inefficient legacy from older versions. Internal classes are in
many ways better.
That aside: Both aren't really meant to be used on a per-request basis
and I don't think anybody really has done that.
I think you should provide an relatively generic resource class.
johannes