Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:875 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86663 invoked from network); 12 Apr 2003 13:06:59 -0000 Received: from unknown (HELO secure.thebrainroom.com) (213.239.42.171) by pb1.pair.com with SMTP; 12 Apr 2003 13:06:59 -0000 Received: from zaneeb.brainnet.i (brain.dial.nildram.co.uk [195.149.29.154]) by secure.thebrainroom.com (8.9.3/8.9.3) with ESMTP id OAA15452; Sat, 12 Apr 2003 14:06:57 +0100 Received: from zaneeb.brainnet.i (IDENT:lx1u2xr6sTzsrmJPNewT4XpUvMMrJVeX@zaneeb.brainnet.i [127.0.0.1]) by zaneeb.brainnet.i (8.11.6/8.11.6) with ESMTP id h3CD6wG24632; Sat, 12 Apr 2003 14:06:58 +0100 Date: Sat, 12 Apr 2003 14:06:58 +0100 (BST) X-X-Sender: wez@zaneeb.brainnet.i To: Rob Richards cc: internals@lists.php.net In-Reply-To: <017101c300d6$a674ce20$06dea8c0@cyberware.local> Message-ID: References: <75071E79-6B95-11D7-96AD-000393B2B3C0@omniti.com> <017101c300d6$a674ce20$06dea8c0@cyberware.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] 2 questions: getter/setter use and streams use From: wez@thebrainroom.com (Wez Furlong) On Sat, 12 Apr 2003, Rob Richards wrote: > If so, is it possible to use a hash table for each class which would have > the property and a function so that when the property name is passed in to > the _get/_set handler it can look up the property and then call the > appropriate function? > Now that being said how can a private hash be setup on a class basis and how > is the memory destruction to be handled for a private hash? Look at ext/rpc, ext/adt and ext/mysqli. > Last question concerns streams. How stable are streams at this point? Its > been a while since I had seen talk about streams other than when they were > first being introduced. We are possibly looking to implement some > functionality using streams (not a priority in the extension at this point), > but want to know wether it is something to consider or not. Stable (despite some hiccups in 4.3.0). I recommend reading my articles in PHP Magazine http://php-mag.net if you are planning to develop your own streams. Also note that you should not use ANSI stdio within PHP if you want your extension to be portable; AT&T based libc (Solaris) has braindead limits on the number of files you can open, and that limit may have already been reached or exceeded even before PHP and the Zend Engine have been started to handle the request. --Wez.