Re: [PHP-DEV] Making PHP upload hooks available through session variables?

2008-07-31 Thread D. Dante Lorenso
Tore B. Krudtaa wrote: I would like to be able to use the upload hooks without installing the APC. I would eventually like to be able to use those upload hooks using session variables. Maybe you can avoid the problem entirely. I was using the uploadprogress PECL extension (which I believe

[PHP-DEV] Re: [PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard string.c

2008-07-31 Thread Derick Rethans
On Mon, 28 Jul 2008, Olivier Hill wrote: Indeed, I forgot to test that case. If I remember correctly, there was no test cases for that function, so I'll fix this tonight and add some tests. I didn't see a commit - have you forgotten about it? regards, Derick -- HEAD before 5_3!:

[PHP-DEV] Still zend_mm_heap corrupted error in PHP 5.2.6

2008-07-31 Thread Santi Saez
Dear Srs, We are having some zend_mm_heap corrupted errors followed by a Segmentation fault (11) in our Apache2 + PHP 5.2.6 servers. There are few information about this bug in internet: * #40479 - http://bugs.php.net/bug.php?id=40479 * #43295 - http://bugs.php.net/bug.php?id=43295 I have

Re: [PHP-DEV] Making PHP upload hooks available through session variables?

2008-07-31 Thread Rasmus Lerdorf
Johannes Schlüter wrote: Hi, On Wed, 2008-07-30 at 13:46 -0700, Tore B. Krudtaa wrote: As most of you probably know Rasmus Lerdorf made som upload hooks available in PHP 5.2 some long time back. This was great news for those that wanted more control of uploads and/or wanted to give real time

[PHP-DEV] Re: [PATCH] Constant expr folding (again), and other things

2008-07-31 Thread Matt Wilmas
Hi Dmitry, - Original Message - From: Dmitry Stogov Sent: Wednesday, July 30, 2008 Hi Matt, does the following code work with your patch? ?php function foo() { static $a = A + B; var_dump($a); } const A = 1; const B = 2; foo(); ? It would be hard to explain why some of

[PHP-DEV] Re: [PATCH] Constant expr folding (again), and other things

2008-07-31 Thread Dmitry Stogov
Hi Matt, For now I would like to disable -CONST constant expression which started to work after your patch. Later we are able to implement the complete constant expressions support. Thanks. Dmitry. Matt Wilmas wrote: Hi Dmitry, - Original Message - From: Dmitry Stogov Sent:

Re: [PHP-DEV] Re: [PATCH] Constant expr folding (again), and other things

2008-07-31 Thread Matt Wilmas
Hi Dmitry, - Original Message - From: Dmitry Stogov Sent: Thursday, July 31, 2008 Hi Matt, For now I would like to disable -CONST constant expression which started to work after your patch. Yes, that's what my new fix will do -- it's coming in just a minute, and it also corrects

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Matt, On Tue, 2008-07-22 at 10:52 -0500, Matt Wilmas wrote: Adding these two array functions has been on the TODO for a while, The patch can quite easily be tricked into an endless recursion of php_array_replace_recursive() calls which will segfault: $ php -r '$a = array(); $a[] = $a; $b =

Re: [PHP-DEV] [PATCH] No runtime fetching of built-in global constants

2008-07-31 Thread Dmitry Stogov
Thanks Matt. I committed near the same patch. It's not so optimal, but little bit more clear. Thanks. Dmitry. Matt Wilmas wrote: Hi Dmitry, For the behavior change that I mentioned in the other thread, with this code: function foo() { static $a = -PHP_INT_MAX; } Which could work

[PHP-DEV] Broken Windows build

2008-07-31 Thread Steph Fox
Hi all, Last week PHP_5_3 out of CVS built on my box under VC6; today it does not. I have been told on irc (thanks Liz) that there is no intention of fixing the breakage because 'the 2003 SDK has been a requirement since PHP 5.1'. This is the first I ever heard of any such requirement -

Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Pierre Joye
hi, On Thu, Jul 31, 2008 at 5:08 PM, Steph Fox [EMAIL PROTECTED] wrote: Hi all, Last week PHP_5_3 out of CVS built on my box under VC6; today it does not. I have been told on irc (thanks Liz) It has been like that since literally years. Nothing new under the sun. that there is no

[PHP-DEV] Re: [INTERNALS-WIN] Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Steph Fox
Hi Pierre, It has been like that since literally years. Nothing new under the sun. Erm... no, it hasn't. That's why I'm reporting it now. that there is no intention of fixing the breakage because 'the 2003 SDK has been a requirement since PHP 5.1'. This is the first I ever heard of any such

[PHP-DEV] Re: [INTERNALS-WIN] Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Pierre Joye
On Thu, Jul 31, 2008 at 5:31 PM, Steph Fox [EMAIL PROTECTED] wrote: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm It wants far more space than I actually have on my laptop hard drive. I can't quite believe you're actually making this a *requirement* for the first

[PHP-DEV] Re: [INTERNALS-WIN] Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Steph Fox
Uninstall the old one, install the new one, et voila, no need to kill a cat to get that solved. Now that we have cleared the true issue, let us go back to work :) Hard drive has 2.02 gigs, SDK installment requires 'at least 1.4 GB'. No way, can't risk it, I need this laptop for work. The

Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Pierre Joye
On Thu, Jul 31, 2008 at 6:16 PM, Derick Rethans [EMAIL PROTECTED] wrote: On Thu, 31 Jul 2008, Pierre Joye wrote: On Thu, Jul 31, 2008 at 5:08 PM, Steph Fox [EMAIL PROTECTED] wrote: Hi all, Last week PHP_5_3 out of CVS built on my box under VC6; today it does not. I have been told on

Re: [PHP-DEV] Broken Windows build

2008-07-31 Thread Rob Richards
Derick Rethans wrote: On Thu, 31 Jul 2008, Pierre Joye wrote: On Thu, Jul 31, 2008 at 5:08 PM, Steph Fox [EMAIL PROTECTED] wrote: Hi all, Last week PHP_5_3 out of CVS built on my box under VC6; today it does not. I have been told on irc (thanks Liz) It has been like that

Re: [PHP-DEV] [PATCH] No runtime fetching of built-in global constants

2008-07-31 Thread Matt Wilmas
Hi Dmitry, Do you know that with your changes, no substitution will happen in a namespace even when using :: prefix? :-/ (That's what I would do when I know it's global, for optimization.) Or is that what you meant by not so optimal? - Matt - Original Message - From: Dmitry Stogov

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Hi, On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote: Ugh, I hate that reference/recursion stuff! I have a hard time following what's happening, and am not sure how some of those checks, etc. even work in php_array_merge() (which I was working from). :-/ I tried changing a few parts,

Re: [PHP-DEV] Making PHP upload hooks available through session variables?

2008-07-31 Thread D. Dante Lorenso
Tore B. Krudtaa wrote: To D. Dante Lorenso: Thanks for notifying me of: http://digitarald.de/project/fancyupload/ But I would still like to see the upload hooks accessible from within a standard PHP inst., which would give me more control of the upload progress as well as more control in the

Re: [PHP-DEV] [PATCH] New functions: array_replace[_recursive]

2008-07-31 Thread Johannes Schlüter
Matt, On Thu, 2008-07-31 at 20:06 +0200, Johannes Schlüter wrote: On Thu, 2008-07-31 at 11:48 -0500, Matt Wilmas wrote: Ugh, I hate that reference/recursion stuff! I have a hard time following what's happening, and am not sure how some of those checks, etc. even work in php_array_merge()

Re: [PHP-DEV] Switch Table Extension for PHP

2008-07-31 Thread Marcus Boerger
Hello Stefan, please discuss with RMs when to merge this in. IMO such a nice locale improvment can go in anytime during alpha when RMs approve. marcus Wednesday, July 30, 2008, 10:18:02 PM, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, for everyone interested in getting

Re: [PHP-DEV] [RFC] Zend Signal Handling

2008-07-31 Thread Lucas Nealan
On 7/30/08 6:11 AM, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: Not so happy that it was not possible to get this committed over the weekend. Johannes did a quick review and it seems like it has enough support from people and is low risk enough to get committed now. Lets hope no extension

Re: [PHP-DEV] [RFC] Zend Signal Handling

2008-07-31 Thread Lucas Nealan
On 7/30/08 11:54 AM, Stanisla Malyshev [EMAIL PROTECTED] wrote: I have a couple of questions about the patch: 1. Why allocate fixed-size buffer via individual malloc's on each activate and free it on each deactivate? Won't it be better to just allocate it once and use it? I'll take a look at