[PHP-DEV] RFC: SPL Comparator interface

2008-10-07 Thread Jeremy
Something that would be extremely useful is a comparator interface in SPL, which could be used to easily implement sorting for objects. Example: class Foo implements Comparator { // is numeric for this example public $bar; //implements compare method from Comparator int

[PHP-DEV] Type hinting return values

2008-10-07 Thread Shawn McCool
Hi all, I've submitted this suggestion once before, but it was quickly shunned with two generic answers: "It's not the PHP way" and "It all boils down to documentation. That's what PHPDoc is for." Both of those are partially correct, but I feel the benefits and other uses certainly make a bett

[PHP-DEV] type hint semantics; disagreement between phpt and manual

2008-10-07 Thread Nathan Nobbe
hi all, we are encountering an error in our code due to type hint semantics. php is allowing NULL values through a type hint for a class, however, if i read the manual, NULL, should only be allowed, if and only if, null is given as the default value for the formal parameter that is type-hinted.

[PHP-DEV] php_firebird

2008-10-07 Thread Lester Caine
What is the correct procedure to create a new driver, or rather clone the existing php_interbase so that we can build a proper Firebird version that actually uses the fbclient.dll rather than sharing the now incompatible GDS32.DLL client. Some people are starting to use Interbase in parallel wit

Re: [PHP-DEV] mingw compilations fails

2008-10-07 Thread marius popa
On Tue, Oct 7, 2008 at 3:37 PM, Scott MacVicar <[EMAIL PROTECTED]> wrote: > We don't currently support mingw. You can use the free compiler from > Microsoft if you wish to compile on Windows. Yes but i see that it compiles with cygwin maybe i should do an define http://bugs.php.net/bug.php?id=404

Re: [PHP-DEV] mingw compilations fails

2008-10-07 Thread Scott MacVicar
We don't currently support mingw. You can use the free compiler from Microsoft if you wish to compile on Windows. Scott marius popa wrote: > I try to build php 5.2.6 with mingw stable > > and i disabled for the moment all the extensions and it fails quite fast > > > ./configure --disable-all -

[PHP-DEV] mingw compilations fails

2008-10-07 Thread marius popa
I try to build php 5.2.6 with mingw stable and i disabled for the moment all the extensions and it fails quite fast ./configure --disable-all --prefix=/opt/php $ make /bin/sh /mingw/tmp/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/mingw/tmp/ph

Re: [PHP-DEV] [PATCH] Bug #44251

2008-10-07 Thread Johannes Schlüter
Hi, On Mon, 2008-10-06 at 10:40 -0500, Tim Steiner wrote: > Greetings, > > I have created a patch for Bug #44251 (Question mark and an escaped > singel quote lead to an exception). Thanks, the test passed my initial tests, I'll commit it later today to the branches. > This is my first patch su