[PHP-DEV] [Fwd: bug in odbc extension http://bugs.php.net/bug.php?id=37527]

2007-09-23 Thread Alexandra S.
Hi, I am attaching here a patch for this bug. Please review it. Original Message Subject:bug in odbc extension http://bugs.php.net/bug.php?id=37527 Date: Tue, 18 Sep 2007 15:29:23 +0200 From: Alexandra S. <[EMAIL PROTECTED]> To: internals@lists.php.net Hi,

[PHP-DEV] bug in odbc extension http://bugs.php.net/bug.php?id=40695

2007-09-23 Thread Alexandra S.
Hi, I am attaching here a small patch for this bug. The original error for the reproduction script in this bug was: *Warning*: odbc_execute() [function.odbc-execute ]: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect , SQL sta

RE: [PHP-DEV] [patch] Late static bindings (LSB)

2007-09-23 Thread Baptiste Autin
>If you mean Client's $structure, the you have to use static::$structure >and it should work. However it's quite a bad design here since you have >no way to ensure class inheriting from Entity would have $structure. Couldn't I write: isset(static::$structure) ? BTW, sorry for my recent vulgar

[PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Paul Biggar
Hi, I'd be very interested to have an overview of compiled variable and backpatching within the interpreter. I can find plenty of emails and code that refers to the two topics, but none that defines them. If there is an overview somewhere, could somebody point me to it? If not, I have a few quest

Re: [PHP-DEV] RE: Ext/OpenSSL patch

2007-09-23 Thread Moritz Bechler
Hi Pierre, > > By the way, it would be nice (and faster) if you can join a couple of > tests and examples (with required data). it will make my work a bit > easier while testing your patch. It took some time - but I now managed to put together some test cases (which hopefully can also serve as ex

Re: [PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Stanislav Malyshev
What is a compiled variable? How does it differ from a non-compiled-variable? When engine encounters variable like $a what it usually does is it looks up current symbol table for an entry named 'a', and then takes zval* sitting there. However, since during the same scope the entry for $a will

Re: [PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Paul Biggar
On 9/23/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > What is a compiled variable? > > How does it differ from a non-compiled-variable? > > When engine encounters variable like $a what it usually does is it looks > up current symbol table for an entry named 'a', and then takes zval* > sitti

Re: [PHP-DEV] [patch] Late static bindings (LSB)

2007-09-23 Thread Stanislav Malyshev
Couldn't I write: isset(static::$structure) ? You could, but that's only runtime. People generally prefer compile-time control which is derived from definition rather than per-instance runtime control (implementing interface vs. checking each time if class has certain methods). So this wil

Re: [PHP-DEV] [patch] Late static bindings (LSB)

2007-09-23 Thread Michael Lively
- Original Message - From: "Stanislav Malyshev" <[EMAIL PROTECTED]> To: "Baptiste Autin" <[EMAIL PROTECTED]> Cc: "'Zoe Slattery'" <[EMAIL PROTECTED]>; "'Dmitry Stogov'" <[EMAIL PROTECTED]>; "'Marcus Boerger'" <[EMAIL PROTECTED]>; "'Lukas Kahwe Smith'" <[EMAIL PROTECTED]>; "'Michael Li

Re: [PHP-DEV] [patch] Late static bindings (LSB)

2007-09-23 Thread Alexey Zakhlestin
On 9/24/07, Michael Lively <[EMAIL PROTECTED]> wrote: > The very phrase late static binding is an oxymoron of sorts :) that's because the term we use is not correct… :) it would be better to say "late binding of static methods" -- Alexey Zakhlestin http://blog.milkfarmsoft.com/