Re: [PHP-DEV] Object method as handler functions in PHP4/Zend From: Jim Winstead (jimw <email protected>)
Date: 06/30/99

Well, PHP4's zend_hash_apply has a variant that allows user-passed data,
so it should be easy to extend the various PHP functions. It probably
wouldn't be difficult to add to PHP3, either, by just implementing a
_php3_hash_apply variant like Zend's, and doing the same work to the
various user functions.

Jim

Chuck Hagenbuch wrote:
>
> Quoting Jim Winstead <jimw <email protected>>:
>
> > More general would be to allow an optional data parameter to the
> > various functions that call user-defined functions, so you could do
> > something like:
> [snip]
> > There's no good reason to tie that optional parameter to objects
> > that I can see.
>
> Very true. Is this something that a) is possible; and b) the developers
> think would be useful?
>
> -chuck

-- 
PHP Development Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>