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 i

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Marcus Boerger
Hello Pierre, Sunday, March 4, 2007, 1:46:40 PM, you wrote: > 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/

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Pierre
On 3/4/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: Sunday, March 4, 2007, 1:46:40 PM, you wrote: > 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/*")

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Marcus Boerger
Hello Pierre, Sunday, March 4, 2007, 3:29:06 PM, you wrote: >> > It may be more useful to add streams support to our glob functions. >> > But it can bring more troubles than expected. I did not elaborate on this really. So let me do that now. If we were going this way we would need to always over

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Pierre
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 needs it. For example, I have my own version for zip, it is bad as the only difference is how I get the path string, the

Re: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread Marcus Boerger
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 needs it. For example, I have my > own version for zip

RE: [PHP-DEV] suggestion SplFileInfo

2007-03-04 Thread scott.mcnaught
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 extensively in C++ was the singleton design pat

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 e

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 y

Re: [PHP-DEV] Thread safe problem on module_registry (Zend API Feature/Change request)

2007-03-04 Thread Edin Kadribasic
Hi Michael, Making dl() work on threaded platforms would be nice. Illustrating your idea with a patch would be very helpful. Edin Michael Vergoz wrote: > Hi > I am currently developing a kind of application server based on PHP > language. > I use modifications I made on SAPI embed/. > I use thr

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 3/4/07,

[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 p

[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 p

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 g