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
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
2011/6/8 Johannes Schlüter johan...@schlueters.de:
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
2011/6/8 Hannes Magnusson hannes.magnus...@gmail.com:
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
On Wed, 2011-06-08 at 10:38 +0200, Hannes Magnusson wrote:
2011/6/8 Johannes Schlüter johan...@schlueters.de:
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
2011/6/8 Johannes Schlüter johan...@schlueters.de:
On Wed, 2011-06-08 at 10:38 +0200, Hannes Magnusson wrote:
2011/6/8 Johannes Schlüter johan...@schlueters.de:
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.
On 8 June 2011 09:47, Alexey Shein con...@gmail.com wrote:
2011/6/8 Hannes Magnusson hannes.magnus...@gmail.com:
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
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, function or
On Wed, Jun 8, 2011 at 12:27, Richard Quadling rquadl...@gmail.com wrote:
On 8 June 2011 09:47, Alexey Shein con...@gmail.com wrote:
2011/6/8 Hannes Magnusson hannes.magnus...@gmail.com:
We have the situation in the docs that parameters declared as arrays
do not follow the typehinting rules,
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 felipe...@gmail.com
To: internals internals@lists.php.net
Subject:
2011/6/8 Johannes Schlüter johan...@schlueters.de:
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 felipe...@gmail.com
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
Hi,
2011/6/8 Christian Kaps christian.k...@mohiva.com
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
On Wed, 8 Jun 2011 08:57:48 -0300, Felipe Pena wrote:
Hi,
2011/6/8 Christian Kaps christian.k...@mohiva.com
Hi,
what happens if I use this code.
class Foo {
public $bar;
public function __construct() {
$this-bar = array($this, 'baz');
$this-bar();
}
public function
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.
2011/6/8 Christian Kaps christian.k...@mohiva.com
On Wed, 8 Jun 2011 08:57:48 -0300, Felipe Pena wrote:
Hi,
2011/6/8 Christian Kaps christian.k...@mohiva.com
Hi,
what happens if I use this code.
class Foo {
public $bar;
public function __construct() {
$this-bar =
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-hinting:
On Wed, Jun 8, 2011 at 2:46 PM, Felipe Pena felipe...@gmail.com 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();
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');
//
On Wed, 8 Jun 2011 15:39:59 +0200, Jordi Boggiano wrote:
On Wed, Jun 8, 2011 at 2:46 PM, Felipe Pena felipe...@gmail.com
wrote:
class foo {
public function __construct() {
$this-bar = function () { return 1; };
// $this-bar(); // error
$x = $this-bar;
$x(); // ok
Martin Scotta
On Wed, Jun 8, 2011 at 5:47 AM, Alexey Shein con...@gmail.com wrote:
2011/6/8 Hannes Magnusson hannes.magnus...@gmail.com:
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
Martin Scotta
On Wed, Jun 8, 2011 at 10:31 AM, Anthony Ferrara ircmax...@gmail.comwrote:
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.
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 values for
Translating documentation in french
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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
On 8 June 2011 22:24, Lester Caine les...@lsces.co.uk 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
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
27 matches
Mail list logo