Re: Question
| From: | Cesar D. Rodas | Date: | Mon, 25 Mar 2013 15:58:22 +0000 |
| Subject: | Re: Question | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-10465@lists.php.net to get a copy of this message | ||
Hi Johannes,
On 25 March 2013 07:57, Johannes Schlüter <johannes@schlueters.de> wrote:
> 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.
Thanks for the advice, I'll change resources to classes somehow.
> 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
>
>
>
>
--
Cesar D. Rodas
Open source developer
http://cesarrodas.com/
Phone: +595-983-161-124