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

2008-08-06 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, else: keep

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

2008-08-06 Thread Pierre Joye
hi Derick, On Wed, Aug 6, 2008 at 8:59 AM, Derick Rethans [EMAIL PROTECTED] wrote: 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

Re: [PHP-DEV] towards alpha2

2008-08-06 Thread Lukas Kahwe Smith
On 05.08.2008, at 22:55, Steph Fox wrote: - shutdown order issues (Greg) Greg will be back on board next week, but I think this was a ZE item anyway? Yes, probably something for Stas or Dmitry? - unix path separators in spl (Steph/Greg/Marcus) Didn't know that one was on any list,

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/session session.c /ext/session/tests session_decode_variation3.phpt session_encode_variation3.phpt session_encode_variation4.phpt session_encode_variation5.p

2008-08-06 Thread Lukas Kahwe Smith
On 06.08.2008, at 07:34, Jani Taskinen wrote: janiWed Aug 6 05:34:55 2008 UTC Modified files: /php-src/ext/session session.c /php-src/ext/session/tests session_decode_variation3.phpt session_encode_variation3.phpt

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

2008-08-06 Thread Hannes Magnusson
On Wed, Aug 6, 2008 at 06:24, Davey Shafik [EMAIL PROTECTED] wrote: 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

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

2008-08-06 Thread Derick Rethans
On Tue, 5 Aug 2008, Olivier Hill wrote: 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? Looks fine - I missed your patch on the list though. regards,

[PHP-DEV] clearstatcache change

2008-08-06 Thread Rasmus Lerdorf
I think we either need to make clearstatcache() not affect the realpath cache, or we should add an optional argument to it to specify whether or not the realpath cache should be cleared as well. The realpath cache makes a huge difference on includes and having the cache blown away by a script

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Marcus Boerger
Hello Stanislav, Wednesday, August 6, 2008, 7:42:29 AM, you wrote: 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. I do not see an argument in complaining about extending a scheme. But I

Re: [PHP-DEV] towards alpha2

2008-08-06 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? Yes, probably something for Stas or Dmitry? There's a patch out there (from Greg):

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Arvids Godjuks
I think it is good as it is. Realy, I'd prefer even a change to global like this: function test ($someparam) global ($someGlobalVariable) { // code here } Or even make it consistent with lamda's and make use of use statment instead of global. P.S. I know my comment will be yeald at, so

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

2008-08-06 Thread Davey Shafik
On Aug 6, 2008, at 03:47 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 06:24, Davey Shafik [EMAIL PROTECTED] wrote: 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

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Moriyoshi Koizumi
Stanislav Malyshev wrote: 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. What a nitpicking :) So would I say that the global statement is inconsistent with static because it doesn't allow

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/session session.c /ext/session/tests session_decode_variation3.phpt session_encode_variation3.phpt session_encode_variation4.phpt session_encode_variation5.p

2008-08-06 Thread Jani Taskinen
Lukas Kahwe Smith kirjoitti: On 06.08.2008, at 07:34, Jani Taskinen wrote: janiWed Aug 6 05:34:55 2008 UTC Modified files: /php-src/ext/sessionsession.c /php-src/ext/session/testssession_decode_variation3.phpt

[PHP-DEV] include bug in 5.3

2008-08-06 Thread Christian Stocker
Hi Since quite some time (weeks), I have this very strange and annoying include bug in 5.3-dev and now I think is the time to report it :) The reproducable script is here: http://trash.chregu.tv/include-bug.php.txt In short, when I have foo/alpha (empty) bar/alpha/bar.php and set the

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

2008-08-06 Thread Hannes Magnusson
On Wed, Aug 6, 2008 at 15:11, Davey Shafik [EMAIL PROTECTED] wrote: On Aug 6, 2008, at 03:47 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 06:24, Davey Shafik [EMAIL PROTECTED] wrote: OK, here's an attempt at a patch[1], I discussed it briefly with Johannes and he felt some discussion

Re: [PHP-DEV] towards alpha2

2008-08-06 Thread Greg Beaver
Steph Fox wrote: Hi Lukas snip these are the ml posts i was referring t:o http://marc.info/?l=php-internalsm=121626110032715 rmdir etc are working now (Dmitry fixed that during his Phar-week). This would be great, I will try to verify all of this next week some time.

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Jani Taskinen
Rasmus Lerdorf wrote: I think we either need to make clearstatcache() not affect the realpath cache, or we should add an optional argument to it to specify whether or not the realpath cache should be cleared as well. See this: http://bugs.php.net/39367 Considering some people seem to want to

[PHP-DEV] mysql_set_charset

2008-08-06 Thread Stanislav Malyshev
Hi! I notice that mysql_set_charset function is not part of 5.3 tree and it's test is marked as usage not recommended. Could you explain what is the reason for that? It's quite unusual to drop functions in later versions, and if mysql_set_charset() has some problem we should note that in the

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Stanislav Malyshev
Hi! I do not see an argument in complaining about extending a scheme. But I see the other solution, use in front of the body, as an introduction of a brand new scheme. Obviously one is very inconsistent. And besides, global could It will be obviously inconsistent anyway, because it is a new

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Stanislav Malyshev
Hi! What a nitpicking :) So would I say that the global statement is inconsistent with static because it doesn't allow assignments within the statement :p Sure it is. That's just another thing to show all this consistency talk is blown way out of proportion long ago. Now let's make global

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

2008-08-06 Thread Texin, Tex
If you are supporting international users, then you also have to worry about the full-width versions of the operators (%, *, etc.) Whether they are treated the same as half-width characters depends on the database. Oracle for example treats them as equivalent. -Original Message- From:

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Arnaud Le Blanc
Hi, On Wednesday 06 August 2008 18:18:49 Jani Taskinen wrote: Rasmus Lerdorf wrote: I think we either need to make clearstatcache() not affect the realpath cache, or we should add an optional argument to it to specify whether or not the realpath cache should be cleared as well. See this:

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/session session.c /ext/session/tests session_decode_variation3.phpt session_encode_variation3.phpt session_encode_variation4.phpt session_encode_variation5.p

2008-08-06 Thread Lukas Kahwe Smith
On 06.08.2008, at 17:18, Jani Taskinen wrote: Lukas Kahwe Smith kirjoitti: On 06.08.2008, at 07:34, Jani Taskinen wrote: janiWed Aug 6 05:34:55 2008 UTC Modified files: /php-src/ext/sessionsession.c /php-src/ext/session/testssession_decode_variation3.phpt

Re: [PHP-DEV] [Fwd: #45687 [Opn-Bgs]: Why is PCNTL marked experimental]

2008-08-06 Thread Lukas Kahwe Smith
On 02.08.2008, at 19:03, Maciek Sokolewicz wrote: Right, so, if this _is_ still considered experimental, then we should fix it in the documentation; and if it's not, we should fix the configure script. Which one will it be? :) so i guess it should get rid of the exerimental flag .. at

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/session session.c /ext/session/tests session_decode_variation3.phpt session_encode_variation3.phpt session_encode_variation4.phpt session_encode_variation5.p

2008-08-06 Thread Jani Taskinen
Lukas Kahwe Smith kirjoitti: On 06.08.2008, at 17:18, Jani Taskinen wrote: Lukas Kahwe Smith kirjoitti: On 06.08.2008, at 07:34, Jani Taskinen wrote: janiWed Aug 6 05:34:55 2008 UTC Modified files: /php-src/ext/sessionsession.c /php-src/ext/session/tests

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Arnaud Le Blanc
On Wednesday 06 August 2008 19:56:58 Arnaud Le Blanc wrote: Hi, On Wednesday 06 August 2008 18:18:49 Jani Taskinen wrote: Rasmus Lerdorf wrote: I think we either need to make clearstatcache() not affect the realpath cache, or we should add an optional argument to it to specify whether

Re: [PHP-DEV] mysql_set_charset

2008-08-06 Thread Ulf Wendel
Stanislav Malyshev schrieb: I notice that mysql_set_charset function is not part of 5.3 tree and it's test is marked as usage not recommended. Could you explain what is the reason for that? It's quite unusual to drop functions in later versions, and if mysql_set_charset() has some problem we

Re: [PHP-DEV] mysql_set_charset

2008-08-06 Thread Ulf Wendel
Ulf Wendel schrieb: and its in HEAD. Andrey is working on re-introducing it to ext/mysql in the 5_3 branch. There it is http://news.php.net/php.cvs/52063 Ulf -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mysql_set_charset

2008-08-06 Thread Stanislav Malyshev
Hi! There it is http://news.php.net/php.cvs/52063 Thanks! -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Hannes Magnusson
On Wed, Aug 6, 2008 at 21:00, Arnaud Le Blanc [EMAIL PROTECTED] wrote: On Wednesday 06 August 2008 19:56:58 Arnaud Le Blanc wrote: Hi, On Wednesday 06 August 2008 18:18:49 Jani Taskinen wrote: Rasmus Lerdorf wrote: I think we either need to make clearstatcache() not affect the realpath

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Moriyoshi Koizumi
Stanislav Malyshev wrote: Hi! What a nitpicking :) So would I say that the global statement is inconsistent with static because it doesn't allow assignments within the statement :p Sure it is. That's just another thing to show all this consistency talk is blown way out of proportion long

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Stanislav Malyshev
Hi! language syntax, whereas the use construct after the argument list is inconsistent with the ordinary function definition unless my proposal Because it is _not_ an ordinary function definition. It's like saying '+' is inconsistent with '-' because $a+$b=$b+$a but $a-$b!=$b-$a. I don't

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-06 Thread Moriyoshi Koizumi
Stanislav Malyshev wrote: Hi! language syntax, whereas the use construct after the argument list is inconsistent with the ordinary function definition unless my proposal Because it is _not_ an ordinary function definition. It's like saying '+' is inconsistent with '-' because $a+$b=$b+$a

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Johannes Schlüter
On Wed, 2008-08-06 at 21:00 +0200, Arnaud Le Blanc wrote: btw. I just noticed chroot() calls this realpath_cache_clean()..intentional? I'd assume that, as /foo inside a chroot is different from /foo outside... Also some streams stuff uses the php_clear_stat_cache() func but those

Re: [PHP-DEV] include bug in 5.3

2008-08-06 Thread Stanislav Malyshev
Hi! and set the include path to foo/:bar/ and then do include(alpha/bar.php); it throws an not-found error. Tried that, worked just fine for me - includes bar/alpha/bar.php. I notice your script on the link does something different, but works for me too with 5.3 CVS. -- Stanislav Malyshev,

Re: [PHP-DEV] include bug in 5.3

2008-08-06 Thread Christian Stocker
On 7.8.2008 3:03 Uhr, Stanislav Malyshev wrote: Hi! and set the include path to foo/:bar/ and then do include(alpha/bar.php); it throws an not-found error. Tried that, worked just fine for me - includes bar/alpha/bar.php. I notice your script on the link does something different, but

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

2008-08-06 Thread Davey Shafik
On Aug 6, 2008, at 11:38 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 15:11, Davey Shafik [EMAIL PROTECTED] wrote: On Aug 6, 2008, at 03:47 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 06:24, Davey Shafik [EMAIL PROTECTED] wrote: OK, here's an attempt at a patch[1], I discussed

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

2008-08-06 Thread Davey Shafik
On Aug 6, 2008, at 11:38 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 15:11, Davey Shafik [EMAIL PROTECTED] wrote: On Aug 6, 2008, at 03:47 AM, Hannes Magnusson wrote: On Wed, Aug 6, 2008 at 06:24, Davey Shafik [EMAIL PROTECTED] wrote: OK, here's an attempt at a patch[1], I

Re: [PHP-DEV] clearstatcache change

2008-08-06 Thread Rasmus Lerdorf
Johannes Schlüter wrote: On Wed, 2008-08-06 at 21:00 +0200, Arnaud Le Blanc wrote: btw. I just noticed chroot() calls this realpath_cache_clean()..intentional? I'd assume that, as /foo inside a chroot is different from /foo outside... Also some streams stuff uses the