Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/date config.w32 /ext/date/lib parse_iso_intervals.re

2008-08-05 Thread Derick Rethans
On Wed, 6 Aug 2008, Pierre Joye wrote: > On Tue, Aug 5, 2008 at 11:59 PM, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > > > Simple question yes/no is enough for me: > > Can it be done, using the build system, in a per-file way or only per > > extension? (If yes per-file, I'd prefer that way, el

[PHP-DEV] CVS Account Request: firat

2008-08-05 Thread firat urasli
Developing the PHP runtime Translating the documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Stanislav Malyshev
Hi! function ($arg) { use $a, &$b; Note that neither static not global allow & inside definitions, so from "consistency" point of view it doesn't work. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Inter

Re: [PHP-DEV] [PATCH] Alias stream_context_get_default() as stream_context_set_default()

2008-08-05 Thread David Coallier
> I had suggested a second optional argument that could be assigned the > resource (context), and then return true. Though I still think that > returning > the resource is the best option. Runs and compiles fine from here. I like the idea too. Great first attempt :) -- Slan, David -- PHP Inter

Re: [PHP-DEV] [PATCH] Alias stream_context_get_default() as stream_context_set_default()

2008-08-05 Thread Davey Shafik
OK, here's an attempt at a patch[1], I discussed it briefly with Johannes and he felt some discussion was needed with regards to the return value. I personally seem some benefit to returning the "new" context; Johannes wasn't sure that returning "true" might not be a better option in that we

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Moriyoshi Koizumi
Larry Garfield wrote: On Tuesday 05 August 2008 12:48:37 am Moriyoshi Koizumi wrote: I don't think there are many differences in ambiguity between $closure = function ($arg) { use $a; ... }; and $closure = function ($arg) use ($a) { }; Moriyoshi -- Moriyoshi Koizumi <[EMAIL PROTECTED]>

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

2008-08-05 Thread Olivier Hill
What should be MFH'ed? I haven't touched HEAD with this. I don't have cvs access here, will only be able to commit friday. Is there still regression issues or my last patch fixed it? Thanks Olivier (Mobile) On 8/5/08, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > > On 31.07.2008, at 09:18, D

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Larry Garfield
On Tuesday 05 August 2008 12:48:37 am Moriyoshi Koizumi wrote: > I don't think there are many differences in ambiguity between > > $closure = function ($arg) { use $a; >... > }; > > and > > $closure = function ($arg) use ($a) { > }; > > Moriyoshi > > -- > Moriyoshi Koizumi <[EMAIL PROTECTED]>

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/date config.w32 /ext/date/lib parse_iso_intervals.re

2008-08-05 Thread Pierre Joye
hi Johannes, On Tue, Aug 5, 2008 at 11:59 PM, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Simple question yes/no is enough for me: > Can it be done, using the build system, in a per-file way or only per > extension? (If yes per-file, I'd prefer that way, else: keep the #ifdef) Per extension

Re: [PHP-DEV] How does error_log open the file?

2008-08-05 Thread mike
On 8/5/08, Johannes Schlüter <[EMAIL PROTECTED]> wrote: > Default is to use the sapi's logging mechanism, for example when using > the apache module apache writes it to it'S error log in whatever way > Apache does that (I think open on server start and then write..) > > Else it either uses the sys

Re: [PHP-DEV] How does error_log open the file?

2008-08-05 Thread Johannes Schlüter
On Mon, 2008-08-04 at 00:52 -0700, mike wrote: > I'm curious as to how error_log is opened... > > Is it opened when an error occurs, as in open/append to, or is the > file handle kept open when the PHP fastcgi process is spawned? Depends on configuration in php.ini and some special extensions loa

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/date config.w32 /ext/date/lib parse_iso_intervals.re

2008-08-05 Thread Johannes Schlüter
Hi, (should have gone out yesterday, but was hanging in my outbox...) On Mon, 2008-08-04 at 15:11 +0200, Pierre Joye wrote: > > Correct PHP is supposed to work on "all" platforms therefore the > > code has to work on Windows, too. > > And now it does. Which is a good thing. > > Now there are t

Re: [PHP-DEV] towards alpha2

2008-08-05 Thread Steph Fox
Hi Lukas, - shutdown order issues (Greg) Greg will be back on board next week, but I think this was a ZE item anyway? - unix path separators in spl (Steph/Greg/Marcus) Didn't know that one was on any list, sorry. I committed a flag to provide unix paths in SPL iterators a couple of weeks

[PHP-DEV] towards alpha2

2008-08-05 Thread Lukas Kahwe Smith
Hi, So alpha1 is out the door. Johannes and I still need to get some routine with this release business. First lesson is to package on Wednesday for a release on Thursday. And I need to be more careful when I update the various PHP sites. Anyways due to the various last minute changes, we

[PHP-DEV] Re: How does error_log open the file?

2008-08-05 Thread mike
anyone? On 8/4/08, mike <[EMAIL PROTECTED]> wrote: > I'm curious as to how error_log is opened... > > Is it opened when an error occurs, as in open/append to, or is the > file handle kept open when the PHP fastcgi process is spawned? > > Essentially I want to be able to provide each client their o

Re: [PHP-DEV] CVS Account Request: sirkris

2008-08-05 Thread Scott MacVicar
You don't need a CVS account to start sending patches. Scott On 5 Aug 2008, at 21:04, Kris Craig wrote: Developing the PHP runtime Maintaining the documentation Maintaining PHP.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: sirkris

2008-08-05 Thread Kris Craig
Developing the PHP runtime Maintaining the documentation Maintaining PHP.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [php-internals] SplFileObject interface

2008-08-05 Thread Marcus Boerger
Hello Giorgio, you think to complex. Just use user streams and be done. marcus Tuesday, August 5, 2008, 8:17:06 PM, you wrote: > Hello everyone, I had a thought about Standard Php Library extension > and his classes and I'd like to expose an idea to see if it can have a > real utility. > Spl

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Marcus Boerger
Hello Dmitry, Tuesday, August 5, 2008, 1:28:32 PM, you wrote: > Of course not, but it will be very hard to understand difference and > fix parser conflicts. How is that hard? we have top_statement and inner_statement in our parser...problem solved. Ha, i actually just learned this way that we

[PHP-DEV] [php-internals] SplFileObject interface

2008-08-05 Thread Giorgio Sironi
Hello everyone, I had a thought about Standard Php Library extension and his classes and I'd like to expose an idea to see if it can have a real utility. Spl has interfaces like Traversable and Iterator that can be implemented by programmers classes. It also has some class of basic use like SplFile

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

2008-08-05 Thread Lukas Kahwe Smith
On 31.07.2008, at 09:18, Derick Rethans wrote: 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 i

Re: [PHP-DEV] PHP 5.3.0alpha1

2008-08-05 Thread Pierre Joye
On Tue, Aug 5, 2008 at 2:14 PM, Hannes Magnusson <[EMAIL PROTECTED]> wrote: > On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: >> Hello! >> >> Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find >> here: >> http://downloads.php.net/johannes/ > > So..

Re: [PHP-DEV] PHP 5.3.0alpha1

2008-08-05 Thread Hannes Magnusson
On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > Hello! > > Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find > here: > http://downloads.php.net/johannes/ So.. Apparently we will not get Windows builds of alpha1 as some of the new extensions didn

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

2008-08-05 Thread Lucas Nealan
On 8/5/08 3:45 AM, "Arnaud Le Blanc" <[EMAIL PROTECTED]> wrote: > In the case of pcntl_signal(), if it registers a handler for a signal, the > signal will be delivered to zend_signal_handler_defer(), which will call > zend_signal_handler() if not in critical section, which will call the actual > h

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Dmitry Stogov
Of course not, but it will be very hard to understand difference and fix parser conflicts. Thanks. Dmitry. Marcus Boerger wrote: Hello Dmitry, Tuesday, August 5, 2008, 8:38:07 AM, you wrote: Allowing "use" inside function body assuming allowing it everywhere. $x = function($arg) {

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-05 Thread Marcus Boerger
Hello Dmitry, Tuesday, August 5, 2008, 8:38:07 AM, you wrote: > Allowing "use" inside function body assuming allowing it everywhere. > $x = function($arg) { > if ($arg) { > use $a; > } else { > use $b; >

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

2008-08-05 Thread Arnaud Le Blanc
On Tuesday 05 August 2008 12:28:19 Lucas Nealan wrote: > On 8/4/08 11:51 PM, "Arnaud Le Blanc" <[EMAIL PROTECTED]> wrote: > > global_sigmask is initialized using sigfillset(), so it contains _all_ > > signals (except SIGSEGV, etc because non-blockable or not safe to block) > > and there is no need

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

2008-08-05 Thread Lucas Nealan
On 8/4/08 11:51 PM, "Arnaud Le Blanc" <[EMAIL PROTECTED]> wrote: > global_sigmask is initialized using sigfillset(), so it contains _all_ signals > (except SIGSEGV, etc because non-blockable or not safe to block) and there is > no need to add signals to global_sigmask it in zend_signal() / > zen

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

2008-08-05 Thread Arnaud Le Blanc
On Tuesday 05 August 2008 08:51:33 Arnaud Le Blanc wrote: > Votre message: > > Greetings! > > > > On 8/3/08 9:37 PM, "Arnaud LB" <[EMAIL PROTECTED]> wrote: > > > If sigaction is not available Zend Signal Handling will not be > > > enabled, so it will not be enabled on Windows (I assume sigaction is

[PHP-DEV] Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-05 Thread Lester Caine
Sorry - switched address to the wrong list :( *I* hate reply not going to the right place - but one of these days I switch to something that just ignores the on board miss direction ;) Larry Garfield wrote: I'm building a multi-database system, although my main targets are MySQL, Postgres, and

Re: [PHP-DEV] Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-05 Thread Lukas Kahwe Smith
On 05.08.2008, at 09:34, Lester Caine wrote: Larry Garfield wrote: I'm building a multi-database system, although my main targets are MySQL, Postgres, and SQLite. How would those handle something like "a string that ends in 100%"? Personally this is one of the reasons that PDO has never at

[PHP-DEV] Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-05 Thread Lester Caine
Larry Garfield wrote: I'm building a multi-database system, although my main targets are MySQL, Postgres, and SQLite. How would those handle something like "a string that ends in 100%"? Personally this is one of the reasons that PDO has never attracted me. Providing the tools to flatten so

Re: [PHP-DEV] Re: __invoke concerns

2008-08-05 Thread Stanislav Malyshev
Hi! If committed, can we put in our CS that internal classes cannot use it? I can almost not imagine more confusing things. I wouldn't say cannot, but maybe should not. For regular classes it indeed doesn't make much sense, but if representing callable things for bridges to other languages e

Re: [PHP-DEV] Re: __invoke concerns

2008-08-05 Thread Hannes Magnusson
On Mon, Aug 4, 2008 at 20:43, Etienne Kneuss <[EMAIL PROTECTED]> wrote: > Hello, > > On Mon, Aug 4, 2008 at 7:59 PM, Hannes Magnusson > <[EMAIL PROTECTED]> wrote: >> On Mon, Aug 4, 2008 at 18:45, Etienne Kneuss <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> On Mon, Aug 4, 2008 at 4:18 PM, Dmitry Sto