Re: [PHP-DEV] new ini parser, caching

2007-09-11 Thread Alexey Zakhlestin
On 9/11/07, Pierre <[EMAIL PROTECTED]> wrote: > On 9/11/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > > well, some OSes allow subscribing to the notifications from filesystem > > > *bsd (including macos-x) use kqueue, linux and winnt have different > > > mechanisms for the same thing > > >

Re: [PHP-DEV] multiple namespace per file

2007-09-11 Thread David Coallier
On 9/11/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Tuesday 11 September 2007, Marcus Boerger wrote: > > Hello Stanislav, > > > > Tuesday, September 11, 2007, 1:21:07 AM, you wrote: > > > Hi! > > > > > > Following the feedback from the community, we (mostly me and Dmitry) > > > tried to find

Re: [PHP-DEV] multiple namespace per file

2007-09-11 Thread Larry Garfield
On Tuesday 11 September 2007, Marcus Boerger wrote: > Hello Stanislav, > > Tuesday, September 11, 2007, 1:21:07 AM, you wrote: > > Hi! > > > > Following the feedback from the community, we (mostly me and Dmitry) > > tried to find a good model that would allow multiple namespaces per file > > withou

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Hannes Magnusson
On 9/9/07, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > 1) Backport the namespaces patch for PHP 6 > > 1 0 -1 +1 > > 2) Symlink the intl extension from PECL, but leave it disabled by > default as is the case with all extensions dependent on external libs > > 1

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Steph Fox
Hi Mike, 7) Introduce mysqlind library into core and use it as a backend for PDO and mysqli extensions (possibly enabling them by default) 1 0 -1 The mysqlind driver is currently alpha. Wherever it goes it should be marked EXPERIMENTAL and off by default Frankly, I'm wondering (out loud) if

[PHP-DEV] Re: multiple namespace per file

2007-09-11 Thread Gregory Beaver
Stanislav Malyshev wrote: > Hi! > > Following the feedback from the community, we (mostly me and Dmitry) > tried to find a good model that would allow multiple namespaces per file > without running into too many problems and complications, and would > allow to bundle multiple namespaced files toge

RE: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Mike Robinson
Since my vote counts for shyte, I'll humbly offer brief remarks instead. Ilia Alshanetsky queried: > 6) Remove safe_mode, register_globals and magic_quotes > > 1 0 -1 *Major* BC break in a minor version? Ouch. This should wait I think. > > 7) Introduce mysqlind libr

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Steph Fox
Heya Mike, -1, this whole idea just sounds so weird for PHP. Sure, but how PHPish is this fatal error? [EMAIL PROTECTED]:~/build/php-5.2-debug$ cli -r 'class c{} c::$x=1;' Fatal error: Access to undeclared static property: c::$x in Command line code on line 1 The idea, as far as I understo

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Michael Wallner
Steph Fox wrote: >> 18) Introduce concept of "strict classes" that do not permit dynamic >> property creation > > -1, this whole idea just sounds so weird for PHP. Sure, but how PHPish is this fatal error? [EMAIL PROTECTED]:~/build/php-5.2-debug$ cli -r 'class c{} c::$x=1;' Fatal error: Access

Re: [PHP-DEV] new ini parser, caching

2007-09-11 Thread Pierre
On 9/11/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > well, some OSes allow subscribing to the notifications from filesystem > > *bsd (including macos-x) use kqueue, linux and winnt have different > > mechanisms for the same thing > > The question is how expensive are those notifications -

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread David Zülke
Am 09.09.2007 um 19:07 schrieb Ilia Alshanetsky: Its been about a week since RFS for features to go into 5.3 has gone out and while there was not a "flood" of ideas there is a substantial list of key changes people would like to go into this release. I've compiled a list of all of the sugge

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Steph Fox
If it counts for anything, here's my vote on the bits I know/care about: 2) Symlink the intl extension from PECL, but leave it disabled by default as is the case with all extensions dependent on external libs +1, I've a feeling this will become important later 3) Apply the Late Static Bindi

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Philip Olson
1) Backport the namespaces patch for PHP 6 1 2) Symlink the intl extension from PECL, but leave it disabled by default as is the case with all extensions dependent on external libs 1 3) Apply the Late Static Binding Patch 1 4) Implement David's Circular Garbage collection patch 0 5

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Andrew Shearer
On 9/11/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Andrew, > > how about @?: style? > > Like: $val = $myarray[$key] ?: $default; > > marcus There are drawbacks with using the @ style regularly. One is the lack of error checking: all error messages generated by finding the array itself

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Robert Cummings
On Tue, 2007-09-11 at 18:54 +0200, Marcus Boerger wrote: > Hello Andrew, > > how about @?: style? > > Like: $val = $myarray[$key] ?: $default; Did you mean like: @$val = $myarray[$key] ?: $default; Because that's an expensive assignment since it will hit the error handler when the index

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Marcus Boerger
Hello Andrew, how about @?: style? Like: $val = $myarray[$key] ?: $default; marcus Tuesday, September 11, 2007, 6:33:42 PM, you wrote: > On 9/11/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: >> Hello Andrew, >> >> did you check out '?:' shortcut in HEAD? >> >> php -r 'echo 4?:2;' -> 4 >>

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Andrew Shearer
On 9/11/07, Marcus Boerger <[EMAIL PROTECTED]> wrote: > Hello Andrew, > > did you check out '?:' shortcut in HEAD? > > php -r 'echo 4?:2;' -> 4 > php -r 'echo 0?:2;' -> 2 > > best regards > marcus Yes, I had hoped that the ?: operator would solve this. But it doesn't serve the same purpose,

Re: [PHP-DEV] new ini parser, caching

2007-09-11 Thread Stanislav Malyshev
well, some OSes allow subscribing to the notifications from filesystem *bsd (including macos-x) use kqueue, linux and winnt have different mechanisms for the same thing The question is how expensive are those notifications - i.e. if one has 1000 of them, will it be a trouble for the OS? -- Sta

Re: [PHP-DEV] Re: Global namespace?

2007-09-11 Thread Marcus Boerger
Hello emo, Tuesday, September 11, 2007, 4:50:01 PM, you wrote: > I believe I read somewhere that it will look like this: > ::class_b->method_c(); This is the preferred way as it doesn't introduce a new keyword. Also this is inline with other languages. > for accessing global scope. > Regards,

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Marcus Boerger
Hello Andrew, did you check out '?:' shortcut in HEAD? php -r 'echo 4?:2;' -> 4 php -r 'echo 0?:2;' -> 2 best regards marcus Tuesday, September 11, 2007, 3:20:46 PM, you wrote: > If there's a workable proposal for ifsetor() that fixes the concerns > brought up by the original and is li

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-11 Thread Marcus Boerger
Hello Zoe, Tuesday, September 11, 2007, 3:53:12 PM, you wrote: > Marcus Boerger wrote: >> Hello Zoe, >> >> %s = [\n]+? > I'm not sure what this would match? I think we need something that > matches any character but doesn't run over a line end? > If so it would be more like [.\\n]+? - although

Re: [PHP-DEV] Re: PHP 5.3 Suggested Feature List

2007-09-11 Thread Nuno Lopes
12) Merge the GCC 4 -fvisibility patch -1 (eventually make it a configure option first? PHP is a API mess) The patch is safe because otherwise PHP wouldn't work on windows (as windows doesn't export the symbols by default). Nuno -- PHP Internals - PHP Runtime Development Mailing List To uns

[PHP-DEV] Re: Global namespace?

2007-09-11 Thread emo
I believe I read somewhere that it will look like this: ::class_b->method_c(); for accessing global scope. Regards, Emil Ivanov Richard Quadling wrote: Assume for some reason you have an entity in a namespace which has the same name as something in the global namespace. Within the namespace,

Re: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread Alexey Zakhlestin
On 9/11/07, BuildSmart <[EMAIL PROTECTED]> wrote: > > It might seem trivial to others because you're not reading the source > > correctly. SPL is not disabled when phar is enabled. > > doesn't the following mean it's disabled or am I interpreting it wrong? > PHP_ADD_EXTENSION_DEP(phar, spl, false

Re: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread BuildSmart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 11, 2007, at 09:58:16, Gregory Beaver wrote: BuildSmart wrote: On Sep 11, 2007, at 05:42:50, Marcus Boerger wrote: Hello Andi, to end this 'many tools' reasoning. For those issues we already adopted zip and if people insist I woul

[PHP-DEV] Global namespace?

2007-09-11 Thread Richard Quadling
Assume for some reason you have an entity in a namespace which has the same name as something in the global namespace. Within the namespace, you wouldn't need to use the namespace prefix (maybe it has been aliased, subclassed or some other reference). How would you access the global namespaced en

Re: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread Gregory Beaver
BuildSmart wrote: > > On Sep 11, 2007, at 05:42:50, Marcus Boerger wrote: > > > Hello Andi, > > > to end this 'many tools' reasoning. For those issues we already > adopted > > zip and if people insist I wouldn't mind if anybody would provide a > working > > tar implementation that allows reading

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-11 Thread Zoe Slattery
Marcus Boerger wrote: Hello Zoe, %s = [\n]+? I'm not sure what this would match? I think we need something that matches any character but doesn't run over a line end? If so it would be more like [.\\n]+? - although this isn't right either (as in, I've tried both and they don't work :-( ).

Re: [PHP-DEV] PHP_FALIAS()

2007-09-11 Thread BuildSmart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 10, 2007, at 16:15:35, Adam Maccabee Trachtenberg wrote: On Mon, 10 Sep 2007, BuildSmart wrote: Perhaps the best approach would be to mimic the ext/mysql functions and feed them to ext/mysqli function rather than aliasing them directly but

[PHP-DEV] Re: PHP 5.3 Suggested Feature List

2007-09-11 Thread Michael Wallner
Ilia Alshanetsky wrote: > 1) Backport the namespaces patch for PHP 6 +1 > 2) Symlink the intl extension from PECL, but leave it disabled by > default as is the case with all extensions dependent on external libs 0 (didn't see anything relevant of it yet) > 3) Apply the Late Static Binding Patch

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Andrew Shearer
If there's a workable proposal for ifsetor() that fixes the concerns brought up by the original and is likely to go in PHP 6, that would be great. In this case, perfect can be the enemy of good. array_get() helps with many common use cases of ifsetor() while fitting into the the standard

Re: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread BuildSmart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 11, 2007, at 05:42:50, Marcus Boerger wrote: Hello Andi, to end this 'many tools' reasoning. For those issues we already adopted zip and if people insist I wouldn't mind if anybody would provide a working tar implementation that allow

RE: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Dmitry Stogov
> 1) Backport the namespaces patch for PHP 6 +1 > 3) Apply the Late Static Binding Patch +1 > 6) Remove safe_mode, register_globals and magic_quotes -1 > 8) OpenID enabling patch for OpenSSL and PHP 5 +1 10) Split off deprecation from E_STRICT into E_DEPRECATED +1 11) Merge the zend_arg

Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref

2007-09-11 Thread David Wang
> that's what worries me, I dont get why people wants to introduce yet > another switch to disable to garbage collector ( that will lead to > different/broken behaviuor) I think there is enough non-sense already > with the unicode.semantics switch thingy. This switch (currently) has nothing to do

RE: [PHP-DEV] multiple namespace per file

2007-09-11 Thread Dmitry Stogov
> And even if we do > multiple namespaces per file. I guess we do not allow a > namespace to be spread onto several files, right? Current implementation allows to spread one namespace on several files. You should just use "namespace" with the same name on top of each file. (Very similar to Java)

RE: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread Dmitry Stogov
Hi, I've attached my PHAR variation that was made some time ago just to prove the concept. It uses standard TAR format and doesn't use any external libraries. In case if you call "php test.tar.gz", PHP (with this extension) will execute file main.php from the archive. I cannot remember wich vers

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Nuno Lopes
That patch is a very good idea, but it does not work there are symbols that are no lomger exported on libxml extension , and although everything compiles, I ended with a broken PHP. Can you give a bit more details on what is broken? Does it mean there's a problem on Windows too, since Windows d

Re: [PHP-DEV] RE: Why not jar for phar? (was Re: [PHP-DEV] PHAR was PHP 5.3 Suggested Feature List)

2007-09-11 Thread Marcus Boerger
Hello Andi, to end this 'many tools' reasoning. For those issues we already adopted zip and if people insist I wouldn't mind if anybody would provide a working tar implementation that allows reading of tgz and tar.bz2 files as well. Yest the purpose of Phar is very different. Anyway can it be th

Re: [PHP-DEV] multiple namespace per file

2007-09-11 Thread Lukas Kahwe Smith
Stanislav Malyshev wrote: So, for the people that wanted multiple NS per file, would such solution work? I think the limitation is acceptable. P.S. this is *not* a "should we use braces" thread, so please don't :) The syntax is not, but since you disallow discussing this in this thread, I

Re: [PHP-DEV] multiple namespace per file

2007-09-11 Thread Marcus Boerger
Hello Stanislav, Tuesday, September 11, 2007, 1:21:07 AM, you wrote: > Hi! > Following the feedback from the community, we (mostly me and Dmitry) > tried to find a good model that would allow multiple namespaces per file > without running into too many problems and complications, and would >

Re: [PHP-DEV] [PATCH] array_get()

2007-09-11 Thread Marcus Boerger
Hello Andrew, you can easily implement this function run time. It is not very flexible and far away from what ifsetor was meant to be. Thus I do not think it is a good idea. See comments below. marcus Tuesday, September 11, 2007, 12:12:55 AM, you wrote: > Here's a patch against HEAD that impl

[PHP-DEV] new ini parser, caching

2007-09-11 Thread Alexey Zakhlestin
On 9/11/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: > > For the record here, a cache is planed once we have a stable version. > > Something like what htscanner does, it already caches the entries > > (cache + stat check once ttl is over). > > Just clarification: the caching is there already. :) >

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Sebastian Bergmann
Ilia Alshanetsky wrote: > 1) Backport the namespaces patch for PHP 6 0 > 2) Symlink the intl extension from PECL, but leave it disabled by > default as is the case with all extensions dependent on external libs 0 > 3) Apply the Late Static Binding Patch 1 > 4) Implement David's Circular Ga

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Pierre
On 9/11/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: > On Mon, 2007-09-10 at 22:56 +0200, Pierre wrote: > > On 9/10/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > > 16) Introduce new php.ini files parser/scanner + CGI/FastCGI? > > > > "htaccess" style ini file support > > > > > > > > 1

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Jani Taskinen
On Mon, 2007-09-10 at 22:56 +0200, Pierre wrote: > On 9/10/07, Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > 16) Introduce new php.ini files parser/scanner + CGI/FastCGI? > > > "htaccess" style ini file support > > > > > > 1 0 -1 > > > > 0 (this can be nice but we need to

RE: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-11 Thread Jani Taskinen
On Mon, 2007-09-10 at 13:47 -0700, Andi Gutmans wrote: >> 16) Introduce new php.ini files parser/scanner + CGI/FastCGI? > > "htaccess" style ini file support > > > > 1 0 -1 > > 0 (this can be nice but we need to make sure it's optional because those > stat()'s can be very