Re: [PHP-DEV] Binary (msgpack) serialize/unserialize

2017-06-29 Thread S.A.N
2017-06-29 2:13 GMT+03:00 Stanislav Malyshev : > Hi! > >> Back in 2014 there was an informal proposal on the mailing list to replace >> PHP serialization with an efficient binary (msgpack) format. > > Why replace? If you have it as an extension, can't people that want to > use it just use it? > > I

Re: [PHP-DEV] Final variables

2017-06-29 Thread li...@rhsoft.net
Am 29.06.2017 um 04:50 schrieb Kalle Sommer Nielsen: 2017-06-28 20:46 GMT+02:00 David Rodrigues : The "final" keyworks make a "local scope" variable value "blocked to rewrite" after instantiate it. Okay, it sounds like a "const", and it is, but "not as we known it". I get that, but I still d

Re: [PHP-DEV] Final variables

2017-06-29 Thread Marco Pivetta
Final is about having immutable data. Immutable doesn't mean that it's a system wide constant, it means that it's referentially pure in its scope. On 29 Jun 2017 11:05 AM, "li...@rhsoft.net" wrote: > > > Am 29.06.2017 um 04:50 schrieb Kalle Sommer Nielsen: > >> 2017-06-28 20:46 GMT+02:00 David R

Re: [PHP-DEV] Final variables

2017-06-29 Thread li...@rhsoft.net
Am 29.06.2017 um 11:08 schrieb Marco Pivetta: Final is about having immutable data. Immutable doesn't mean that it's a system wide constant, it means that it's referentially pure in its scope. i refered to "why you would forcefully need it to be a variable still then if you know the value is

Re: [PHP-DEV] Final variables

2017-06-29 Thread Marco Pivetta
On Thu, Jun 29, 2017 at 11:19 AM, li...@rhsoft.net wrote: > in other languages like Visual Basic constants are fast, in PHP they are > slow, both in define and access > Two things here: 1. don't ever consider visual basic for any comparison of any sort: it's basically (ha!) the worst example o

Re: [PHP-DEV] Final variables

2017-06-29 Thread li...@rhsoft.net
Am 29.06.2017 um 11:25 schrieb Marco Pivetta: On Thu, Jun 29, 2017 at 11:19 AM, li...@rhsoft.net mailto:li...@rhsoft.net>> wrote: in other languages like Visual Basic constants are fast, in PHP they are slow, both in define and access Two things here: 1

Re: [PHP-DEV] Final variables

2017-06-29 Thread David Rodrigues
I will try answer the questions: > I get that, but I still don't understand why you would forcefully need > it to be a variable still then if you know the value is gonna be > constant, of course besides global visibility or in iterations "final" is not "const". "final" mean a initial state that w

Re: [PHP-DEV] Final variables

2017-06-29 Thread Dan Ackroyd
On 29 June 2017 at 05:20, Marco Pivetta wrote: > References to properties ...is effectively a BC break for anything > using reflection and closure scope binding No it's not. If that feature was brought into PHP, any code that is currently valid, that the library is capable of reflecting, would

Re: [PHP-DEV] Final variables

2017-06-29 Thread Marco Pivetta
Hi David, On Thu, Jun 29, 2017 at 11:58 AM, David Rodrigues wrote: > > The `final` modifier would likely clash with property type definitions, > if those ever make it to the language. > > Still, a few pain-points remain: > > * References to properties (you cannot reference final properties > an

Re: [PHP-DEV] Final variables

2017-06-29 Thread Marco Pivetta
Hey Dan, On Thu, Jun 29, 2017 at 12:07 PM, Dan Ackroyd wrote: > On 29 June 2017 at 05:20, Marco Pivetta wrote: > > > References to properties ...is effectively a BC break for anything > > using reflection and closure scope binding > > No it's not. > > If that feature was brought into PHP, any c

Re: [PHP-DEV] Binary (msgpack) serialize/unserialize

2017-06-29 Thread Stanislav Malyshev
Hi! > PHP Session, http://php.net/manual/en/session.configuration.php#ini.session.serialize-handler ? > Memcache, Redis, etc - not configuring custom serializer. > Not sure about those, but don't see a problem adding custom handler. -- Stas Malyshev smalys...@gmail.com -- PHP Internals -

[PHP-DEV] [RFC] LDAP EXOP

2017-06-29 Thread Côme Chilliet
Hello, I wrote an RFC for LDAP EXOP support: https://wiki.php.net/rfc/ldap_exop An implementation is available here: https://github.com/MCMic/php-src/tree/ldap_exop Please feel free to comment on the chosen API or the implementation. Any comment is welcome. Côme PS: Jakub Zelenka said here an

Re: [PHP-DEV] [RFC] LDAP EXOP

2017-06-29 Thread Andreas Heigl
Hey Côme Am 29.06.17 um 17:33 schrieb Côme Chilliet: > Hello, > > I wrote an RFC for LDAP EXOP support: https://wiki.php.net/rfc/ldap_exop > > An implementation is available here: > https://github.com/MCMic/php-src/tree/ldap_exop > > Please feel free to comment on the chosen API or the impleme

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2017-06-28

2017-06-29 Thread lp_benchmark_robot
Results for project PHP master, build date 2017-06-28 19:23:22-07:00 commit: b411d4a previous commit:f626a78 revision date: 2017-06-28 23:38:49+02:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB