Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Pierre
On 3/3/07, Marcus Boerger [EMAIL PROTECTED] wrote: Hello Arnold, I added glob directory stream support. Now you can do two things: $d1 = new DirectoryIterator(glob://mydir/*); $d2 = new DirectoryIterator(mydir/*, DirectoryIterator::USE_GLOB); count() stuff will follow. I'm not sure it is

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Pierre
On 3/4/07, Marcus Boerger [EMAIL PROTECTED] wrote: Hello Pierre, Sunday, March 4, 2007, 6:22:03 PM, you wrote: To make this long story short, I do not understand the reason behind a glob:// stream wrapper. It makes no sense. But yes, we need a better glob support in PHP. Many extensions

[PHP-DEV] Native Singleton Implementation

2007-03-04 Thread scott.mcnaught
*** Sorry - forgot to change the subject *** Hello All, I am new to the php internals mailing list. I am a fairly experienced programmer with a few ideas floating around. I have come from a C++ games development background and have now moved to primarily writing in php. One thing that I used

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Pierre
Hi Marcus, On 3/4/07, Marcus Boerger [EMAIL PROTECTED] wrote: Damn hell i am just sick of getting complaints without even understanding the matters. As you wrote you don't understand. So just stay calm. Damn it! I don'T see it as personal. It is just fucking stupid that you hook onto stuff

Re: [PHP-DEV] Native Singleton Implementation

2007-03-04 Thread Guilherme Blanco
Hi, The idea behing a native singleton class implementation should be really handy, but this is fairly simple to achieve. Take a look at PHP documentation to see some patterns implementation: http://www.php.net/manual/en/language.oop5.patterns.php I hope this helps. Best regards, On

[PHP-DEV] DateTime object equality

2007-03-04 Thread Hans Lellelid
Hi all, DateTime equality (not identity) appears to be broken. I've created a ticket for this issue (http://bugs.php.net/bug.php?id=40691), which keeps getting marked as bogus by Ilia. This may be a more appropriate issue to raise on list, as I seem to be having both a very hard time making my

[PHP-DEV] DateTime object equality

2007-03-04 Thread Hans Lellelid
Hi all, DateTime equality (not identity) appears to be broken. I've created a ticket for this issue (http://bugs.php.net/bug.php?id=40691), which keeps getting marked as bogus by Ilia. This may be a more appropriate issue to raise on list, as I seem to be having both a very hard time making my

RE: [PHP-DEV] Native Singleton Implementation

2007-03-04 Thread scott.mcnaught
Sure, implementing singleton is easy enough. But you can't abstract it in PHP. In C++ you can use things called template classes or generics to abstract the singleton implementation. This way you don’t have to duplicate the protected constructor, the instance and the accessor for each class. I