Re: [PHP-DEV] __invoke() weirdness

2008-12-28 Thread Jack Allnutt
Etienne Kneuss wrote: Finally, note that you can do that in userland using something looking like: public function __call($name, $args) { return call_user_func_array(array($this->$name, "__invoke"), $args); } It seems like it'd make more sense to allow *all* functions to be called using the 'nor

Re: [PHP-DEV] __invoke() weirdness

2008-12-28 Thread Etienne Kneuss
Hello, On Mon, Dec 29, 2008 at 6:00 AM, David Zülke wrote: > On 25.12.2008, at 06:11, Lars Strojny wrote: > >> Hi David, >> >> Am Dienstag, den 23.12.2008, 17:02 +0100 schrieb David Zülke: >> [...] >>> >>> This gives a fatal "Call to undefined method DateTime::getAtom()" >>> $d = new DateTime();

Re: [PHP-DEV] __invoke() weirdness

2008-12-28 Thread David Zülke
On 25.12.2008, at 06:11, Lars Strojny wrote: Hi David, Am Dienstag, den 23.12.2008, 17:02 +0100 schrieb David Zülke: [...] This gives a fatal "Call to undefined method DateTime::getAtom()" $d = new DateTime(); $d->getAtom = Curry::create(array($d, 'format'), DATE_ATOM); echo $d->getAtom(

Re: [PHP-DEV] __invoke() weirdness

2008-12-28 Thread Ionut Gabriel Stan
PHP written in a JavaScript style is already possible with PHP 5.3. I started a little thread about this on a forum but didn't get that much feedback: http://www.sitepoint.com/forums/showthread.php?t=565576 It's not really what we're used to in JavaScript but it's very close. On 12/25/2008 0

Re: [PHP-DEV] PHP Unavailable

2008-12-28 Thread Pierre Joye
hi, On Sun, Dec 28, 2008 at 10:41 AM, Kenan R Sulayman wrote: Please ask further questions to the php-install mailing list. About this problem, you are certainly using the same php.ini than before but the snmp data has been removed. Comment out the php_snmp.dll line in your php.ini and it shou

Re: [PHP-DEV] PHP Unavailable

2008-12-28 Thread Tomas Kuliavas
2008 Gruodis 28, 11:41, Sek Kenan R Sulayman rašė: > Hey Folks! > > I've been working with Zend Studio. > Since I've uninstalled the suite, PHP is exiting with: > Cannot find module (IP-MIB): At line 0 in (none) > Cannot find module (IF-MIB): At line 0 in (none) > Cannot find module (TCP-MIB): At l

[PHP-DEV] PHP Unavailable

2008-12-28 Thread Kenan R Sulayman
Hey Folks! I've been working with Zend Studio. Since I've uninstalled the suite, PHP is exiting with: Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none