Re: 2 questions: getter/setter use and streams use

From: Date: Sat, 12 Apr 2003 13:06:58 +0000
Subject: Re: 2 questions: getter/setter use and streams use
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-875@lists.php.net to get a copy of this message
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). <plug> I recommend reading my articles in PHP Magazine http://php-mag.net if you are planning to develop your own streams. </plug> 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.

« previous php.internals (#875) next »