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 -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
