Hi,
I'm into the process of reviewing the Zend memory manager, and I noticed
something in the allocation of the heap.
I'm working on PHP 5.6.14, but nothing that could affect it has changed
in 5.6.15; I'm building on Debian squeeze, 32 bits.
I'm referring to Zend/zend_alloc.c:zend_mm_init()
The
Alexander Lisachenko wrote on 01/11/2015 21:49:
class Foo {
public static function test($bar = null) {
var_dump(func_get_args());
}
}
class Baz extends Foo {
public static function test(...$args) {
parent::test(...$args);
}
}
[...]
From userland point of
Andrea Faulds wrote on 01/11/2015 19:35:
I recently wished PHP had this feature when trying to implement the
Khronos Group Typed Arrays specification in PHP, which requires
sharing certain data between unrelated (inheritance-wise) classes. I
ended up having to expose a public method to get the
On 2 November 2015 at 09:25, Rowan Collins wrote:
> Andrea Faulds wrote on 01/11/2015 19:35:
>
>> I recently wished PHP had this feature when trying to implement the
>> Khronos Group Typed Arrays specification in PHP, which requires sharing
>> certain data between unrelated (inheritance-wise) cla
Hi Georges,
I quite like this idea. Although I struggle to see many use cases. The only one
I’ve thought of in the past is the ability to ‘befriend’ the test case for your
class. So you don’t have to extend the class in your tests if you want access
to non-public class members.
This is purely
Hi Rowan,
Rowan Collins wrote:
Andrea Faulds wrote on 01/11/2015 19:35:
I recently wished PHP had this feature when trying to implement the
Khronos Group Typed Arrays specification in PHP, which requires
sharing certain data between unrelated (inheritance-wise) classes. I
ended up having to exp
Hi Rowan,
Rowan Collins wrote:
Clearly, from the language's point of view, class Baz is missing the
parameters in its function signature that Foo specifies, so the warning
seems perfectly correct to me. In your example, you've replaced a single
optional parameter ($bar = null) with a specificati
2015-11-02 12:22 GMT+03:00 Rowan Collins :
> Should they? func_get_args() can be used to simulate any function
> signature, so you could equally say that the following are "compatible":
Hello! Thank you for the answer.
However, question is not about func_get_args() at all, it can be removed to
Hi Georges,
Le 01/11/2015 17:04, georges a écrit :
Hi php internals,
I recently discovered the "friendship concept" in c++ and i really love
the concept.
And i wonder if the php internals would be interested to implements it in
the next 7.x major version.
You may be interested by an articl
Tom,
> 3. arc4random puts a generator in the user process.
>
> This is much more controversial. Some people (Anthony F. for one and myself
> until recently) argue that a generator algorithm in the user process
> degrades security. It must in any case be downstream of the kernel source
> and theref
Hi,
One thing that should be worth mentioning is that my approach of private
classes is decoupled in 2 parts.
The first one as the ability to prevent instantiation outside of namespace
and sub-namespaces. The second is the ability to access protected members,
which matches your wish of friend cla
Results for project PHP master, build date 2015-11-02 05:26:15+02:00
commit: 957d6c1b4b12c3821fe3a35288d1a406e8abc0c4
revision date: 2015-11-02 10:59:11+08:00
environment:Haswell-EP
cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping
2, LLC 45 MB
mem
*One more detail : I wouldn't set the 'friend' information on the same
line as the class declaration.*
I agree, it can look horrible to read, and the way to use the "friend"
syntax as the way that we currently "use" traits can be an interesting idea.
Geolim4
2015-11-02 15:42 GMT+01:00 guilherme
Alexander Lisachenko wrote on 02/11/2015 11:12:
First definition declares exactly one single parameter, which can be
absent during the method call, so I can even write
public static function test() {}
Second definition defines zero or more arguments, so it can be also
described by the same si
On Sun, 2015-11-01 at 17:04 +0100, georges wrote:
> I recently discovered the "friendship concept" in c++ and i really
> love the concept.
> And i wonder if the php internals would be interested to implements it
> in the next 7.x major version.
Could you provide use cases where this provides a be
Le 02/11/2015 15:42, guilhermebla...@gmail.com a écrit :
Hi,
One thing that should be worth mentioning is that my approach of
private classes is decoupled in 2 parts.
The first one as the ability to prevent instantiation outside of
namespace and sub-namespaces. The second is the ability to
Hi Rowan,
On 11/02/2015 05:41 PM, Rowan Collins wrote:
Alexander Lisachenko wrote on 02/11/2015 11:12:
First definition declares exactly one single parameter, which can be
absent during the method call, so I can even write
public static function test() {}
Second definition defines zero or mo
Hello,
It has been brought to my attention that some PHP code using LDAP connect was
broken by the update to PHP 5.6.11.
This is because the use on ldap_connect(host:port) is not allowed anymore.
You have to use either ldap_connect(host, port) or
ldap_connect(ldap://host:port).
The use of ldap_
18 matches
Mail list logo