[PHP-DEV] Another approach to timeout handling

2008-08-29 Thread Dmitry Stogov
Hi, This is simple, fast and system independent solution for safe timeout handling. The patch does the same as Zend Signal Handling and it does it safer (correct me if I'm wrong). The signal handler just set EG(timed_out) flag (as on Windows). This flag is checked during execute() loop, but only

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

2008-08-29 Thread Dmitry Stogov
Hi Matt, I updated your patch a little bit to make it more clear (from my point of view). Please take a look. Thanks. Dmitry. Matt Wilmas wrote: Hi Dmitry, Well, it's been awhile since Alpha 1 :-), so I wanted to finally resend this before Alpha 2! I agree that the additional optimization

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

2008-08-29 Thread Matt Wilmas
Hi Dmitry, Yeah, that looks good too, and should work the same way. :-) Thanks, Matt - Original Message - From: Dmitry Stogov Sent: Friday, August 29, 2008 Hi Matt, I updated your patch a little bit to make it more clear (from my point of view). Please take a look. Thanks.

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

2008-08-29 Thread Dmitry Stogov
Ok, I'm going to commit it. Could you remember why we disabled constants substitution for ZEND_CT? Thanks. Dmitry. Matt Wilmas wrote: Hi Dmitry, Yeah, that looks good too, and should work the same way. :-) Thanks, Matt - Original Message - From: Dmitry Stogov Sent:

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

2008-08-29 Thread Matt Wilmas
Hi Dmitry, - Original Message - From: Dmitry Stogov Sent: Friday, August 29, 2008 Ok, I'm going to commit it. Could you remember why we disabled constants substitution for ZEND_CT? Yeah, it's to make sure something like -CONST in ZEND_CT context doesn't work sometimes, sometimes

Re: [PHP-DEV] ext/soap ctor errors

2008-08-29 Thread Lukas Kahwe Smith
On 13.08.2008, at 14:31, David Zülke wrote: True, it indeed does since 5.3... but what about that warning; does it have to be raised at all? if the exceptions option is passed? Am 08.08.2008 um 09:39 schrieb Dmitry Stogov: Hi, I took a quick look into the issue and I didn't found a

Re: [PHP-DEV] alpha2 scheduled

2008-08-29 Thread Marcus Boerger
Hello Stanislav, Thursday, August 28, 2008, 7:43:04 PM, you wrote: Hi! I'm really sorry, but I have to ask. Since you can detect that this is a nested namespace, why can't we allow it? Because that's not how model was designed and it creates all kind of It wasn't designed to have multiple

[PHP-DEV] CVS Account Request: iodbc

2008-08-29 Thread Patrick van Kleef
Lukas Kahwe Smith asked me to register so i can update the ext/odbc code -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-08-29 Thread Matt Wilmas
Hi again 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. Later we are able to implement the complete constant expressions support. One more

Re: [PHP-DEV] ext/soap ctor errors

2008-08-29 Thread David Zülke
Am 29.08.2008 um 13:11 schrieb Lukas Kahwe Smith: On 13.08.2008, at 14:31, David Zülke wrote: Am 08.08.2008 um 09:39 schrieb Dmitry Stogov: Hi, I took a quick look into the issue and I didn't found a problem. SoapClient constructor already throws exceptions in case of WSDL errors. ?php

Re: [PHP-DEV] run-tests gsoc status?

2008-08-29 Thread Derick Rethans
On Wed, 27 Aug 2008, Travis Swicegood wrote: On Aug 27, 2008, at 10:30 AM, Sebastian Bergmann wrote: So the student worked on PHPT instead of run-tests.php? Yes, as we talked about earlier in the year on IRC and on the wiki. For those of you who don't know what PHPT is: It's a

[PHP-DEV] PECL Win32 snapshots missing.

2008-08-29 Thread Richard Quadling
Hi. I used to get the latest PECL and PHP win32 snapshots from http://snaps.php.net/win32. The pecl snapshot has been missing for a while. They are present for V6 and V5.2, but not V5.3 Am I missing something? -- - Richard Quadling Zend Certified Engineer :

Re: [PHP-DEV] PECL Win32 snapshots missing.

2008-08-29 Thread Pierre Joye
hi! On Fri, Aug 29, 2008 at 4:42 PM, Richard Quadling [EMAIL PROTECTED] wrote: Hi. I used to get the latest PECL and PHP win32 snapshots from http://snaps.php.net/win32. The pecl snapshot has been missing for a while. They are present for V6 and V5.2, but not V5.3 We already answered this

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

2008-08-29 Thread Dmitry Stogov
Hi Matt, Sorry, I just don't have time to look into it in last minute. Thanks. Dmitry. Matt Wilmas wrote: Hi again Dmitry, - Original Message - From: Dmitry Stogov Sent: Thursday, July 31, 2008 Hi Matt, For now I would like to disable -CONST constant expression which

Re: [PHP-DEV] alpha2 scheduled

2008-08-29 Thread Stanislav Malyshev
Hi! It wasn't designed to have multiple namespaces at all to begin with. But as You mean multiple namespaces per file, right? Otherwise it sounds kind of silly. Yes, it wasn't designed to have multiple namespaces per file, and it's really bad idea to have multiple namespaces per file in 90%

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

2008-08-29 Thread Stanislav Malyshev
Hi! Yeah, it's to make sure something like -CONST in ZEND_CT context doesn't work sometimes, sometimes not. My previous message (first part): http://marc.info/?l=php-internalsm=121750618525882w=2 There's also a thing that now code like: $var = 3/0; (of course, it could be more complex -

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

2008-08-29 Thread Matt Wilmas
Hi Stas, - Original Message - From: Stanislav Malyshev Sent: Friday, August 29, 2008 Hi! Yeah, it's to make sure something like -CONST in ZEND_CT context doesn't work sometimes, sometimes not. My previous message (first part):

Re: [PHP-DEV] ext/soap ctor errors

2008-08-29 Thread Hannes Magnusson
On Fri, Aug 29, 2008 at 17:08, Dmitry Stogov [EMAIL PROTECTED] wrote: Especially for this situation warnings are generated by libxml. I don't like to disable these warnings in ext/soap, because in some situation libxml may generate warnings and then return parsed document. So SoapClient()

Re: [PHP-DEV] alpha2 scheduled

2008-08-29 Thread Hannes Magnusson
On Thu, Aug 28, 2008 at 19:43, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! I'm really sorry, but I have to ask. Since you can detect that this is a nested namespace, why can't we allow it? Because that's not how model was designed and it creates all kind of trouble with name

Re: [PHP-DEV] alpha2 scheduled

2008-08-29 Thread Stanislav Malyshev
Hi! Seems like you are answering lot of questions about namespaces lately with that's not how the model was designed. Not really, and it's not the reason, the reason why it wasn't designed that way was explained before and was explained again. Guess it should have been designed in the

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

2008-08-29 Thread Stanislav Malyshev
Hi! static $a = -'abc'; // 0 static $b = +'abc'; // abc $c = +'abc'; // 0 } We could get into trouble here. Imagine: static $a = -'12.8'; This should be -12.8, but what if locale changes and . is no longer decimal separator? Moreover, what if locale changes between compile and

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

2008-08-29 Thread Stanislav Malyshev
Hi! I'm not sure what you mean, does not compile? Nothing has been changed that should affect any code like your example... Oh, I think I was confusing two constant patches - I was thinking about the constant evaluation patch, not constant fetching patch. Sorry. -- Stanislav Malyshev, Zend

[PHP-DEV] Closing mysql_pconnects.

2008-08-29 Thread Richard Quadling
Hi. Can someone point me to where or how PHP DOESN'T close persistent connections (those opened using mysql_pconnect()) when mysql_close() is called with that connection. Sorry to ask such an obvious question, but I'm not seeing it. Thank you. -- - Richard Quadling Zend Certified Engineer

[PHP-DEV] Re: Closing mysql_pconnects.

2008-08-29 Thread Lupus Michaelis
Richard Quadling a écrit : Can someone point me to where or how PHP DOESN'T close persistent connections Maybe because it is... persistent ? (those opened using mysql_pconnect()) when mysql_close() is called with that connection. See http://php.net/mysql_pconnect -- Mickaël Wolff aka

Re: [PHP-DEV] Re: Closing mysql_pconnects.

2008-08-29 Thread Robert Cummings
On Sat, 2008-08-30 at 04:40 +0200, Lupus Michaelis wrote: Richard Quadling a écrit : Can someone point me to where or how PHP DOESN'T close persistent connections Maybe because it is... persistent ? He's probably trying to learn how to do the same. This is internals after all and not

Re: [PHP-DEV] Re: Closing mysql_pconnects.

2008-08-29 Thread Lupus Michaelis
Robert Cummings a écrit : He's probably trying to learn how to do the same. This is internals after all and not php-general. Sorry for the private mail, I did't see you sent here too. It is in the documentation that mysql_close don't close a mysql_pconnect. -- Mickaël Wolff aka Lupus

Re: [PHP-DEV] Re: Closing mysql_pconnects.

2008-08-29 Thread Ronald Chmara
On Aug 29, 2008, at 7:58 PM, Robert Cummings wrote: On Sat, 2008-08-30 at 04:40 +0200, Lupus Michaelis wrote: Richard Quadling a écrit : Can someone point me to where or how PHP DOESN'T close persistent connections Maybe because it is... persistent ? He's probably trying to learn how