Re: [PHP-DEV] Sites still down?

2011-06-08 Thread Lester Caine
Richard Quadling wrote: What is the current state of play on the sites that were taken down in > March. I'm trying to get a clean copy of files from > http://pecl2.php.net/downloads/php-windows-builds/php-libs/ Take a look athttp://windows.php.net/downloads/php-sdk/ In fact, take a look aroun

Re: [PHP-DEV] Sites still down?

2011-06-08 Thread Richard Quadling
On 8 June 2011 22:24, Lester Caine wrote: > What is the current state of play on the sites that were taken down in > March. I'm trying to get a clean copy of files from > http://pecl2.php.net/downloads/php-windows-builds/php-libs/ Take a look at http://windows.php.net/downloads/php-sdk/ In fact,

[PHP-DEV] Sites still down?

2011-06-08 Thread Lester Caine
What is the current state of play on the sites that were taken down in March. I'm trying to get a clean copy of files from http://pecl2.php.net/downloads/php-windows-builds/php-libs/ -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine

[PHP-DEV] SVN Account Request: itanea

2011-06-08 Thread Fred Blanc
Translating documentation in french -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Callable type

2011-06-08 Thread David Zülke
He means function foo(callback derp = array('MyClass', 'ohai')) { ... } David On 08.06.2011, at 15:31, Anthony Ferrara wrote: >> No default values, other then NULL allowed. >> Otherwise we would need to support array("classname", "methodname") >> too, and then people would want default array v

Re: [PHP-DEV] Callable type

2011-06-08 Thread Martin Scotta
Martin Scotta On Wed, Jun 8, 2011 at 10:31 AM, Anthony Ferrara wrote: > > No default values, other then NULL allowed. > > Otherwise we would need to support array("classname", "methodname") > > too, and then people would want default array values for array > > typehinting etc etc etc. > > Unles

Re: [PHP-DEV] Callable type

2011-06-08 Thread Martin Scotta
Martin Scotta On Wed, Jun 8, 2011 at 5:47 AM, Alexey Shein wrote: > 2011/6/8 Hannes Magnusson : > > We have the situation in the docs that parameters declared as arrays > > do not follow the typehinting rules, but parameters as class names do. > > Re-using the callback from the docs could get

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Christian Kaps
On Wed, 8 Jun 2011 15:39:59 +0200, Jordi Boggiano wrote: On Wed, Jun 8, 2011 at 2:46 PM, Felipe Pena wrote: class foo {   public function __construct() {      $this->bar = function () { return 1; };      // $this->bar(); // error      $x = $this->bar;      $x(); // ok      $this->bar = array($

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Christian Kaps
On Wed, 8 Jun 2011 09:46:26 -0300, Felipe Pena wrote: It works in the same way: class foo { public function __construct() { $this->bar = function () { return 1; }; // $this->bar(); // error $x = $this->bar; $x(); // ok $this->bar = array($this, 'baz'); //

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Jordi Boggiano
On Wed, Jun 8, 2011 at 2:46 PM, Felipe Pena wrote: > class foo { >   public function __construct() { >      $this->bar = function () { return 1; }; >      // $this->bar(); // error >      $x = $this->bar; >      $x(); // ok > >      $this->bar = array($this, 'baz'); >      // $this->bar(); // erro

Re: [PHP-DEV] Callable type

2011-06-08 Thread Anthony Ferrara
> No default values, other then NULL allowed. > Otherwise we would need to support array("classname", "methodname") > too, and then people would want default array values for array > typehinting etc etc etc. Unless I mis-read what you said, we already have default array values for array type-hinti

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Felipe Pena
2011/6/8 Christian Kaps > On Wed, 8 Jun 2011 08:57:48 -0300, Felipe Pena wrote: > >> Hi, >> >> 2011/6/8 Christian Kaps >> >> Hi, >>> >>> >>> what happens if I use this code. >>> >>> class Foo { >>> >>> public $bar; >>> >>> public function __construct() { >>> >>> $this->bar = array($this,

RE: [PHP-DEV] Bundling "modern" extensions

2011-06-08 Thread John Crenshaw
> Please don't forget that it's possible to host your database apart from your > main code. Mongolab[1] While this is technically true, and as much as I love MongoDb, for all practical purposes this isn't really useful. The latency on these sorts of connections is generally totally unacceptable

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Christian Kaps
On Wed, 8 Jun 2011 08:57:48 -0300, Felipe Pena wrote: Hi, 2011/6/8 Christian Kaps Hi, what happens if I use this code. class Foo { public $bar; public function __construct() { $this->bar = array($this, 'baz'); $this->bar(); } public function bar() { echo 'bar';

Re: [PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Felipe Pena
Hi, 2011/6/8 Christian Kaps > Hi, > > > Hi all, >> Reading our bug tracker I noticed a good feature request [1] from 2009 >> which >> points to an interesting feature that I think makes sense for us, since we >> are now working with $f() using objects and strings, and the >> array('class', >> '

[PHP-DEV] Re: $arr = array('Hello', 'world'); $arr();

2011-06-08 Thread Christian Kaps
Hi, Hi all, Reading our bug tracker I noticed a good feature request [1] from 2009 which points to an interesting feature that I think makes sense for us, since we are now working with $f() using objects and strings, and the array('class', 'method') is an old known for call_user_func()-like

Re: [PHP-DEV] Callable type

2011-06-08 Thread Richard Quadling
2011/6/8 Johannes Schlüter : > On Wed, 2011-06-08 at 11:27 +0100, Richard Quadling wrote: >> If you try to use $funcarray(), you get the following fatal error ... >> >> Fatal error: Function name must be a string > > This is fixed. See thread > > From:   Felipe Pena > To:     internals > Subject:

Re: [PHP-DEV] Callable type

2011-06-08 Thread Johannes Schlüter
On Wed, 2011-06-08 at 11:27 +0100, Richard Quadling wrote: > If you try to use $funcarray(), you get the following fatal error ... > > Fatal error: Function name must be a string This is fixed. See thread From: Felipe Pena To: internals Subject:[PHP-DEV] $arr = array('Hello', 'w

Re: [PHP-DEV] Callable type

2011-06-08 Thread Hannes Magnusson
On Wed, Jun 8, 2011 at 12:27, Richard Quadling wrote: > On 8 June 2011 09:47, Alexey Shein wrote: >> 2011/6/8 Hannes Magnusson : >>> We have the situation in the docs that parameters declared as arrays >>> do not follow the typehinting rules, but parameters as class names do. >>> Re-using the cal

Re: [PHP-DEV] Callable type

2011-06-08 Thread Johannes Schlüter
On Wed, 2011-06-08 at 12:17 +0200, Hannes Magnusson wrote: > >> A callable wouldn't be fully featured type. > > > > Which means that > > class callable { } > > No. 'callable' is a parser token. Which has larger implications. This break code where people use callable as constant, property, funct

Re: [PHP-DEV] Callable type

2011-06-08 Thread Richard Quadling
On 8 June 2011 09:47, Alexey Shein wrote: > 2011/6/8 Hannes Magnusson : >> We have the situation in the docs that parameters declared as arrays >> do not follow the typehinting rules, but parameters as class names do. >> Re-using the callback from the docs could get confusing when >> extensions st

Re: [PHP-DEV] Callable type

2011-06-08 Thread Hannes Magnusson
2011/6/8 Johannes Schlüter : > On Wed, 2011-06-08 at 10:38 +0200, Hannes Magnusson wrote: >> 2011/6/8 Johannes Schlüter : >> > On Tue, 2011-06-07 at 12:12 -0700, Stas Malyshev wrote: >> >> Hi! >> >> >> >> > https://wiki.php.net/rfc/callable >> >> >> >> It is good there's an RFC. However it seems to

Re: [PHP-DEV] Callable type

2011-06-08 Thread Johannes Schlüter
On Wed, 2011-06-08 at 10:38 +0200, Hannes Magnusson wrote: > 2011/6/8 Johannes Schlüter : > > On Tue, 2011-06-07 at 12:12 -0700, Stas Malyshev wrote: > >> Hi! > >> > >> > https://wiki.php.net/rfc/callable > >> > >> It is good there's an RFC. However it seems to lack code examples. I > >> understand

Re: [PHP-DEV] Callable type

2011-06-08 Thread Alexey Shein
2011/6/8 Hannes Magnusson : > We have the situation in the docs that parameters declared as arrays > do not follow the typehinting rules, but parameters as class names do. > Re-using the callback from the docs could get confusing when > extensions start to typehint on it, but not the core.. > > I t

Re: [PHP-DEV] Callable type

2011-06-08 Thread Hannes Magnusson
2011/6/8 Johannes Schlüter : > On Tue, 2011-06-07 at 12:12 -0700, Stas Malyshev wrote: >> Hi! >> >> > https://wiki.php.net/rfc/callable >> >> It is good there's an RFC. However it seems to lack code examples. I >> understand it may be obvious to the proposers how it looks like, but >> it'd be nice

Re: [PHP-DEV] Callable type

2011-06-08 Thread Hannes Magnusson
We have the situation in the docs that parameters declared as arrays do not follow the typehinting rules, but parameters as class names do. Re-using the callback from the docs could get confusing when extensions start to typehint on it, but not the core.. I think there is a subtle difference betwe

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-08 Thread Julien Pauli
I wrote about ZendMM some time ago (http://julien-pauli.developpez.com/tutoriels/php/internals/zend-memory-manager/) , that's in french language ;-) To shorten the conversation a little bit, I would suggest to trace the memory with valgrind/massif. That's not too hard if you know what you do, if n