Re: [PHP-DEV] Performance question about create_function

2009-10-24 Thread Michael Stillwell
On Mon, Oct 19, 2009 at 1:13 PM, Mathieu Suen wrote: > Looking at the way array_map is working, it could worth to use > create_function for object. > > For example if I got a list of object: > > $callback = create_function($element, 'return $selement->getId();'); > $ids = array_map($callback, $so

[PHP-DEV] differences in the way spl_autoload() works on windows and *nix with namespaces

2009-10-24 Thread Herman Radtke
It appears that spl_autoload() has implicit namespace autoloading support on windows due to the fact that the namespace operator is the same as the directory separator on windows. For example, the class foo\Bar will evaluate to the path "foo\Bar.php" on windows. I think spl_autoload() should also