Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Rasmus Lerdorf
Edward Z. Yang wrote: I don't really care either way, but if it's a well known fact, might as well stop trying. Does APC work on Windows? I recently submitted a patch to fix the snaps.php.net compilation of APC, but for any non-trivial script (interestingly enough, apc.php and and phpinfo() work

Re: [PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Edward Z. Yang
Jared Williams wrote: > I'm running php 5.2.5 NTS with APC 3.1.0-dev. It works, but not without some > issues, like occasionally get a FastCGI process crashing which I suspect is > APC. Hello Jared, Doesn't running APC under FastCGI kind of defeat the purpose of APC? -- Edward Z. Yang

Re: [PHP-DEV] magic quotes finale

2008-05-23 Thread Rasmus Lerdorf
Gregory Beaver wrote: Rasmus Lerdorf wrote: I see absolutely no reason to force people to go through and change: if(!get_magic_quotes_gpc()) to: if (!function_exists('get_magic_quotes_gpc') || !get_magic_quotes_gpc()) when there is no technical reason to force them to do so. It is slower, m

Re: [PHP-DEV] magic quotes finale

2008-05-23 Thread Gregory Beaver
Rasmus Lerdorf wrote: > I see absolutely no reason to force people to go through and change: > > if(!get_magic_quotes_gpc()) > > to: > > if (!function_exists('get_magic_quotes_gpc') || !get_magic_quotes_gpc()) > > when there is no technical reason to force them to do so. It is slower, > more v

RE: [PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Jared Williams
> -Original Message- > From: Edward Z. Yang [mailto:[EMAIL PROTECTED] > Sent: 23 May 2008 20:23 > To: internals@lists.php.net > Subject: [PHP-DEV] APC doesn't work on Windows? > > I don't really care either way, but if it's a well known > fact, might as well stop trying. Does APC work

Re: [PHP-DEV] BC an' all that

2008-05-23 Thread Andrei Zmievski
That would be a major WTF factor for me: strings are unicode but (string) is binary. -Andrei Steph Fox wrote: Because the majority of use cases involving strings do not involve binary strings. Or, as Rasmus said, "logic". Not strings, *casts* to string. Or is there no way to differentiate b

Re: [PHP-DEV] BC an' all that

2008-05-23 Thread Steph Fox
Because the majority of use cases involving strings do not involve binary strings. Or, as Rasmus said, "logic". Not strings, *casts* to string. Or is there no way to differentiate between them? - Steph -Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] APC doesn't work on Windows?

2008-05-23 Thread Edward Z. Yang
I don't really care either way, but if it's a well known fact, might as well stop trying. Does APC work on Windows? I recently submitted a patch to fix the snaps.php.net compilation of APC, but for any non-trivial script (interestingly enough, apc.php and and phpinfo() work fine), APC segfaults or

Re: [PHP-DEV] BC an' all that

2008-05-23 Thread Andrei Zmievski
Because the majority of use cases involving strings do not involve binary strings. Or, as Rasmus said, "logic". -Andrei Steph Fox wrote: Hi all, Tony's not alone, I'm also playing with PHP 6 today. As Edward mentioned when I started talking about the upgrade path, we don't have a way to cop

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-23 Thread Andrei Zmievski
UG(ascii_conv) is for the format string, not the arguments. The warning is thrown by this code: convert_to_string_ex(argv[currentarg]); It should check the arg type and return with a warning if it's Unicode. -Andrei Steph Fox wrote: It does - 'UG(ascii_conv)' - but sometimes there's a u

[PHP-DEV] BC an' all that

2008-05-23 Thread Steph Fox
Hi all, Tony's not alone, I'm also playing with PHP 6 today. As Edward mentioned when I started talking about the upgrade path, we don't have a way to cope with the (binary)|(b) cast prior to PHP 5.2.1. It's arguable that most people will have access to PHP > 5.2.1, but that's not 100% useful

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-23 Thread Steph Fox
This patch fixes it: http://dev.daylessday.org/diff/shell_exec_unicode.diff Coolth :) Still, I see no point to fix something until we remove the switch. Let's give Scott a chance to get home from php|tek and present his patch to do just that. - Steph (loin-girder extraordinaire) -- PH

Re: [PHP-DEV] Unicode progress [Was: unicode.semantics ad infinitum]

2008-05-23 Thread Antony Dovgal
On 21.05.2008 17:51, Antony Dovgal wrote: On 21.05.2008 17:50, Steph Fox wrote: Not fix the streams issue? Felipe has taken care of that issue, so now we have only one uber-major issue left. Your patch? Or the changed error message? Yes, I mean that problem with storing string/Unicode fun

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Brian Moon
Lars Strojny wrote: a) write a proposal, b) write a patch for the Zend Engine, c) ask again. +1 on what Lars said. Not so much on the syntax. That just looks like a parse error to me. -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Antony Dovgal
First of all, this was already discussed, search the archives before posting your suggestions. Second, I still see very little sense in suggestions not supported by patches. You can add your +/-1 for ever, but it won't be implemented until someone sits down and writes the patch. And finally, t

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Yi Wang
I'm not using this syntax. But I don't oppose it. On 5/22/08, Stan Vassilev | FM <[EMAIL PROTECTED]> wrote: > > Hi, > > I hear this often by other developers and I tend to agree with them, that > arrays are used often, and often nested, so that having a long syntax for > array literals tend to

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lars Strojny
Hi Marco, Am Freitag, den 23.05.2008, 16:51 +0200 schrieb Marco: > I can't see any real benefit of this change apart from a WTF factor... > its possible i'm missing something though! Whats the benefit apart > from saving a line of code? The fact that this syntactic variant is available *and used*

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Marco
> I have a suggestion for upcoming PHP6 as it's a major version change. I > suggest a possibility to use this (example): > > $host = parse_url('http://someurl.com')['host']; > > instead of > > $host = parse_url('http://someurl.com'); > $host = $host['host']; I can't see any real benefit of this c

[PHP-DEV] Re: PHP6 new syntax use suggestion

2008-05-23 Thread Jaroslav Hanslik
Astro [GTalk] napsal(a): $host = parse_url('http://someurl.com'); $host = $host['host']; You can use this: $host = parse_url('http://someurl.com', PHP_URL_HOST); -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lars Strojny
Hi Astro, Am Freitag, den 23.05.2008, 15:35 +0200 schrieb Astro [GTalk]: [...] > $host = parse_url('http://someurl.com')['host']; > > instead of > > $host = parse_url('http://someurl.com'); > $host = $host['host']; > > Now it returns a syntax error. a) write a proposal, b) write a patch for th

Re: [PHP-DEV] magic quotes finale

2008-05-23 Thread Philip Olson
We have covered this a bunch of times already. magic_quotes_gpc are gone, but we leave in the function that tells userspace code that they are off. get_magic_quotes_gpc() will always return false which means that thousands of applications out there will run unchanged and will simply take th

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lokrain
Hello, You got +1 from me for this idea. Regards, Dimitar Isusov

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Eric Coleman
+1 On Fri, May 23, 2008 at 7:45 AM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > Johannes Schlüter wrote: >> >> Hi, >> >> On Thu, 2008-05-22 at 12:33 +0200, "Pierre Joye" wrote: >>> >>> Agreed, we should simply go through a vote and be done with that. >> >> Vote until all are annoyed and don't vote

[PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Astro [GTalk]
Hello, I have a suggestion for upcoming PHP6 as it's a major version change. I suggest a possibility to use this (example): $host = parse_url('http://someurl.com')['host']; instead of $host = parse_url('http://someurl.com'); $host = $host['host']; Now it returns a syntax error. Have a nice d

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Jani Taskinen
Johannes Schlüter wrote: Hi, On Thu, 2008-05-22 at 12:33 +0200, "Pierre Joye" wrote: Agreed, we should simply go through a vote and be done with that. Vote until all are annoyed and don't vote against it anymore just to stop voting? ("it's less annoying to have it than vote about it every two

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Alexey Zakhlestin
On Fri, May 23, 2008 at 12:59 PM, Pierre Joye <[EMAIL PROTECTED]> wrote: > For the record here, +1. +1 (for informational purposes, do not have karma to actually vote) -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vi

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Pierre Joye
On Fri, May 23, 2008 at 6:30 AM, Brian Moon <[EMAIL PROTECTED]> wrote: > Andi Gutmans wrote: >> >> It would make PHP a bit nicer :) >> >> Andi > > I almost typed it the other day not thinking. Been doing a lot of YUI and > {} and [] are growing on me. > > +1 For the record here, +1. -- Pierre

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Lokrain
Hello, -100. This discussion is closed long ago.