[PHP-DEV] PATCH: bug #46701

2009-01-02 Thread shire
I've created a patch for bug #46701 (http://bugs.php.net/bug.php?id=46701) but it requires Zend changes, it can be found at the links below for all branches. I've verified all tests pass. We may want to verify it for other architectures due to the nature of it being a float conversion proble

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Lars Strojny
Hi Lukas, hi Marcus, Am Freitag, den 02.01.2009, 15:53 +0100 schrieb Lukas Kahwe Smith: [...] > Ok, I guess I totally missed the "static class" patch. > @Lars: Could you open a new thread and start a discussion about that > patch there? Thanks for mentioning the patch but it is too early for bu

Re: [PHP-DEV] call_user_func segfault

2009-01-02 Thread Johannes Schlüter
On Fri, 2009-01-02 at 16:55 +0100, Derick Rethans wrote: > Hello, > > I've been running into a strange segfault with PHP 5.2.x (it works in > PHP 5.3) when using call_user_func() recursively. I can not find out > what causes it, but I did manage to have a simple test case. For the > test to cra

Re: [PHP-DEV] Closures serialization

2009-01-02 Thread Marcus Boerger
Hello Marcin, Friday, January 2, 2009, 8:56:41 PM, you wrote: > Hello internals and a happy new year. > I've been meaning to ask this for some time now: why aren't closures > serializable? The only on-list discussion about this that i've found is: > http://marc.info/?l=php-internals&m=119837318

[PHP-DEV] Closures serialization

2009-01-02 Thread Marcin Kurzyna
Hello internals and a happy new year. I've been meaning to ask this for some time now: why aren't closures serializable? The only on-list discussion about this that i've found is: http://marc.info/?l=php-internals&m=119837318407795&w=2 Personally i'd find serialization of closures very useful (

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-02 Thread Johannes Schlüter
Hi, On Wed, 2008-12-31 at 17:38 +0100, Marcus Boerger wrote: > So far it is. Yet I as much as you do not like the inconsistency. So I > spend a little bit on providing the following patch that should do > what > you were looking for. I thought bout this issue for one day or so, there are three th

Re: [PHP-DEV] Differences in VC6 and VC9 Windows builds and MSSQL Driver.

2009-01-02 Thread Pierre Joye
hi William, On Fri, Jan 2, 2009 at 5:01 PM, William A. Rowe, Jr. wrote: > Uwe Schindler wrote: >> >> I am not sure, if VC6 can be dropped easily. E.g. some SAPIs that directly >> map into servers may have problems if using the wrong CRT. Until now, I had >> no time to build up a Windows "Sun Java

Re: [PHP-DEV] Differences in VC6 and VC9 Windows builds and MSSQL Driver.

2009-01-02 Thread William A. Rowe, Jr.
Uwe Schindler wrote: > > I am not sure, if VC6 can be dropped easily. E.g. some SAPIs that directly > map into servers may have problems if using the wrong CRT. Until now, I had > no time to build up a Windows "Sun Java System Webserver" and test it with > both CRTs. The code compiles fine on the

[PHP-DEV] call_user_func segfault

2009-01-02 Thread Derick Rethans
Hello, I've been running into a strange segfault with PHP 5.2.x (it works in PHP 5.3) when using call_user_func() recursively. I can not find out what causes it, but I did manage to have a simple test case. For the test to crash, you either need a debug build of PHP, or valgrind + USE_ZEND_ALL

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Lukas Kahwe Smith
On 02.01.2009, at 15:20, Marcus Boerger wrote: There are two things here. One is the __getStatic which I do not care for personally but which has the potential of requiring c level api changes. The other is 'static class' as in the patch provided by Lars. That looks pretty good to me and from

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Pierre Joye
hi, On Fri, Jan 2, 2009 at 2:59 PM, Lukas Kahwe Smith wrote: > @Marcus: Like I said its a question of someone writing the code .. Timm > proposed a patch which Stas thought had issues and then nobody picked things > up .. > > @Pierre/all: Well we did announce something like a freeze. Of course t

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Marcus Boerger
Hello Lukas, Friday, January 2, 2009, 2:59:40 PM, you wrote: > On 01.01.2009, at 17:55, Pierre Joye wrote: >> hi! >> >> On Thu, Jan 1, 2009 at 2:56 PM, Marcus Boerger wrote: >>> Hello Lukas, >>> >>> if anything requires an internal API change than we at least should >>> do >>> those parts. B

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Lukas Kahwe Smith
On 01.01.2009, at 17:55, Pierre Joye wrote: hi! On Thu, Jan 1, 2009 at 2:56 PM, Marcus Boerger wrote: Hello Lukas, if anything requires an internal API change than we at least should do those parts. Besides this issue was long ago raised and imo should go in. As we get more and more peo

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-02 Thread Marcus Boerger
Hello David, Friday, January 2, 2009, 8:03:22 AM, you wrote: > Marcus, > thanks! > Why is it > Test::{closure}() > {closure}() > and not > Test::{closure}() > Test::{closure}() > in that test, though? Is it because func1() "was there" from the > Engine's POV after the ctor was called? AFAIC