[PHP-DEV] Bug # 33500 | imap auth fails when server advertises gssapi

2007-03-22 Thread Back Ports
Hi all, Is there any progress on the following bug report: http://bugs.php.net/bug.php?id=33500thanks=6 It was reported quite a while ago -- I also saw a relevant post on the mit kerberos mailing list where discussed patches fixed the issue, however, they appear impossible to track down.

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Michael Walter
Hi, On 3/21/07, Richard Lynch [EMAIL PROTECTED] wrote: I think solving the common need for 99% of the people with a nice simple clean anonymous function is PHP way. Right. But then those people add 2 + 2 and get frustrated because they can't do the obvious ;) If somebody has a real-life

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Christian Schneider
Michael Walter wrote: Right. But then those people add 2 + 2 and get frustrated because they can't do the obvious ;) I find it all but obvious to being able to use non-local, non-global variables in PHP. It's one of the main PHP points IMHO that a variables is either local or explicitely

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Michael Walter
Hi, On 3/22/07, Christian Schneider [EMAIL PROTECTED] wrote: Michael Walter wrote: Right. But then those people add 2 + 2 and get frustrated because they can't do the obvious ;) I find it all but obvious to being able to use non-local, non-global variables in PHP. It's one of the main PHP

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Christian Schneider
Michael Walter wrote: I find it all but obvious to being able to use non-local, non-global variables in PHP. It's one of the main PHP points IMHO that a variables is either local or explicitely accessed through $_GLOBALS (or super globals). It gives me a warm and fuzzy feeling that I know

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Stefan Walk
On 22/03/07, Christian Schneider [EMAIL PROTECTED] wrote: If somebody has a real-life demonstrated NEED for the closures/scoping, by all means, bring it up. Plain old google brought up: http://groovy.codehaus.org/Martin+Fowler's+closure+examples+in+Groovy among other hits (Groovy syntax

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Sean Coates
function sort_by_key($key) { For the record, I do like this syntax, but it COULD be rewritten using current practices (see below). class SortByKey { public $key; public function __construct($key) { $this-key = $key; } public function do($a, $b) { if ($a[$this-key] $b[$this-key])

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Michael Walter
On 3/22/07, Christian Schneider [EMAIL PROTECTED] wrote: Michael Walter wrote: Which seems to fit Andi's $_SCOPE proposal. Yes, but is a point against a real closure proposal. I think the defining property of a real closure proposal is having the lexical scope available. So I guess we both

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Michael Walter
On 3/22/07, Sean Coates [EMAIL PROTECTED] wrote: That said, I like the idea of a first class callable object. For the example above, doing this: class SortByKey implements Callable {} Note that this is what Java did since day one (it was thought that anonymous inner classes were good enough).

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Christian Schneider
Michael Walter wrote: A simple real-life example is: function pick($member) { return create_function('$x', 'return $x-'.$member.';'); } which could be used e.g. in array_map(pick('age'), $people). Arguably, in this case you could as well write: array_map(function($p) {return

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Stefan Walk
On 22/03/07, Sean Coates [EMAIL PROTECTED] wrote: function sort_by_key($key) { For the record, I do like this syntax, but it COULD be rewritten using current practices (see below). I know, and it can be done without typing so much: class SortByKey { function __call($name, $a) { if

[PHP-DEV] Patches for bug#33664

2007-03-22 Thread Richard Quadling
As subject. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! Index: proc_open.c === RCS file:

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Stanislav Malyshev
For the record, I do like this syntax, but it COULD be rewritten using current practices (see below). That's a good point - actually most uses of closures could be with some effort rewritten as classes. The difference would be that in case of closures, closure chooses which parts of context

[PHP-DEV] CVS Account Request: tias

2007-03-22 Thread (mat) Tias Guns
I would like to help develop pear/PEAR_Frontend_Web, cellog asked me to apply -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-03-22 Thread Gregory Beaver
(mat) Tias Guns wrote: I would like to help develop pear/PEAR_Frontend_Web, cellog asked me to apply confirmed, Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bug # 33500 | imap auth fails when server advertises gssapi

2007-03-22 Thread Michael B Allen
On Thu, 22 Mar 2007 12:02:50 +0500 Back Ports [EMAIL PROTECTED] wrote: Hi all, Is there any progress on the following bug report: http://bugs.php.net/bug.php?id=33500thanks=6 It was reported quite a while ago -- I also saw a relevant post on the mit kerberos mailing list where

[PHP-DEV] Module init not called when loaded by dl from CLI?

2007-03-22 Thread Michael B Allen
I'm seeing that PHP_MINIT_FUNCTION does not get called if it's loaded with dl from a CLI script. Anyone else seeing that? If I add two lines to write a file like: PHP_MINIT_FUNCTION(plexcel) { FILE *out = fopen(/tmp/plexcel.log, a); fprintf(out, module initializing ...\n); fflush(out); The file

Re: [PHP-DEV] Module init not called when loaded by dl from CLI?

2007-03-22 Thread Michael B Allen
On Thu, 22 Mar 2007 20:02:53 -0400 Michael B Allen [EMAIL PROTECTED] wrote: I'm seeing that PHP_MINIT_FUNCTION does not get called if it's loaded with dl from a CLI script. Anyone else seeing that? If I add two lines to write a file like: PHP_MINIT_FUNCTION(plexcel) { FILE *out =

[PHP-DEV] String BC break \{$a}

2007-03-22 Thread Christian Schneider
Hi there, looking around quickly I couldn't find any documentation on the following change: $a = foo; echo \{$a}; PHP 4.4.4: {foo} PHP 5.2.1: \{foo} I didn't check which exact version introduced this change. Some third-party code used this obscure construct and failed when migrating from

Re: [PHP-DEV] PATCH: anonymous functions in PHP

2007-03-22 Thread Richard Lynch
On Thu, March 22, 2007 8:09 am, Christian Schneider wrote: Plain old google brought up: http://groovy.codehaus.org/Martin+Fowler's+closure+examples+in+Groovy among other hits (Groovy syntax should be easy enough to follow). He said real-life examples (-:C I said real-life NEED, as in, I

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 2:47 am, Tijnema ! wrote: On 3/21/07, Richard Lynch [EMAIL PROTECTED] wrote: I splice the ID3 tags onto the front of an MP3 stream in PHP on this site: http://uncommonground.com/ The id3 library in PHP is quite good at this, but needs a maintainer... Well, it is

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 3:57 am, Antony Dovgal wrote: I don't think anybody sane is doing audio encoding and video resizing in PHP. PHP is about interface, clients are not going to wait an hour or two for a page to load. E. Actually, I have many PHP scripts with fire up exec processes to

Re: [PHP-DEV] GSoC

2007-03-22 Thread Richard Lynch
On Wed, March 21, 2007 3:57 am, Antony Dovgal wrote: I don't think anybody sane is doing audio encoding and video resizing Whoops! Sorry. I missed the part about being sane. That makes my previous post invalid. :-) -- Some people have a gift link here. Know what I want? I want you to buy a

Re: [PHP-DEV] String BC break \{$a}

2007-03-22 Thread Tomas Kuliavas
Hi there, looking around quickly I couldn't find any documentation on the following change: $a = foo; echo \{$a}; PHP 4.4.4: {foo} PHP 5.2.1: \{foo} I didn't check which exact version introduced this change. Some third-party code used this obscure construct and failed when migrating