[PHP-DEV] Patch for #42589

2007-10-13 Thread Martin Jansen
Attached is a patch for the MySQL and SQLite drivers of PDO that implements the feature request from #42589 by adding the name of the table where the column is from to the output of getColumnMeta(). The change for MySQL seems to be pretty straightforward, but for SQLite I had to add the SQLITE_ENA

Re: [PHP-DEV] Unification of phpinfo() output for PDO drivers

2007-10-13 Thread Martin Jansen
On Fri Oct 12, 2007 at 01:5229PM -0700, Stanislav Malyshev wrote: > Martin Jansen wrote: > >The attached patch against HEAD attempts to unify the phpinfo() output > >of the PDO drivers for Oracle, MySQL, and PostgreSQL by always including > >the PECL module version string and the $Id$ CVS keyword.

Re: [PHP-DEV] Patch for #42589

2007-10-13 Thread Martin Jansen
On Sat Oct 13, 2007 at 11:4625AM +0200, Martin Jansen wrote: > Attached is a patch for the MySQL and SQLite drivers of PDO that > implements the feature request from #42589 by adding the name of the > table where the column is from to the output of getColumnMeta(). Antony already implemented this

[PHP-DEV] Patch for bug #42322

2007-10-13 Thread Martin Jansen
Attached is a patch and a corresponding test case for bug #42322 against the PHP_5_3 branch. (Antony suggested I don't supply PDO patches against HEAD.) - Martin Index: ext/pdo_mysql/mysql_statement.c === RCS file: /repository/php

Re: [PHP-DEV] Patch for #42589

2007-10-13 Thread Martin Jansen
Martin Jansen wrote: On Sat Oct 13, 2007 at 11:4625AM +0200, Martin Jansen wrote: Attached is a patch for the MySQL and SQLite drivers of PDO that implements the feature request from #42589 by adding the name of the table where the column is from to the output of getColumnMeta(). Antony alread

[PHP-DEV] Method overloading by method signature

2007-10-13 Thread Hans Moog
Will method overloading by method signature be implemented in php6 or even php 5.3? Example: I think this would be a very big advantage and would help developers to write better code.

Re: [PHP-DEV] Method overloading by method signature

2007-10-13 Thread Alexey Zakhlestin
Hans, such overloading would be incompatible with php's dynamic nature As far as I remember, even type-hinting for basic-types (strings, integers) was rejected On 10/13/07, Hans Moog <[EMAIL PROTECTED]> wrote: > Will method overloading by method signature be implemented in php6 or > even php 5.3?

AW: [PHP-DEV] Method overloading by method signature

2007-10-13 Thread Hans Moog
Why would it be incompatible with php's dynamic nature? (I already heard many people saying "that this is not the php way") But why ? Don't you like it or do you think it is just not possible to be implemented in php? I could provide a patch that makes it possible (even with complete visibility

Re: [PHP-DEV] Method overloading by method signature

2007-10-13 Thread Alexey Zakhlestin
can your patch handle the following situation? how? class A { public function fun1($a) { //… } public function fun1($a, $b) { //… } } $a = new A(); $a->fun1('a', 'b', 'c'); // which method is called here? On 10/14/07, Hans Moog <[EMAIL PROTECTED]> wrote:

RE: [PHP-DEV] Method overloading by method signature

2007-10-13 Thread Hans Moog
It shows an error that fun1 is not implemented for the signature of the passed parameters. But you could still provide a method that matches any number and type of parameters by adding the following method declaration. /** * This method accepts parameters of any type and any count. */ publi