Re: [PHP4BETA] passing a method to usort

From: Date: Tue, 29 Feb 2000 21:46:16 +0000
Subject: Re: [PHP4BETA] passing a method to usort
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-11208@lists.php.net to get a copy of this message
Quoting Stig Bakken <Stig.Bakken@fast.no>: > It is the Zend compiler that recognizes "::" (as opposed to the > executor), so it's no wonder your example doesn't work. We could patch > call_user_function{,_ex} to look for "::" in the function name though. That would be good. It doesn't address the issue of being able to pass an _object_ method to usort() and similar functions, though - being able to pass an instance of a class, so that class member variables can be referred to from within the sort function... Any chance of that being possible? -chuck

« previous php.version4 (#11208) next »