Re: [PHP-DEV] Exposing object handles to userland

2017-07-04 Thread Stanislav Malyshev
Hi! > - Can two objects can have the same object id > but different object handlers? > (e.g. iterators of some built in classes?) > I'm not familiar enough with PHP's history to be sure. Yes, if extension using non-standard handlers is in use. > - Can the the largest object handle be

RE: [PHP-DEV] Exposing object handles to userland

2017-07-04 Thread tyson andre
There was a proposal back in 2015 to implement a function spl_object_id(object $o) : int`, which directly returns the object handle (similar to `spl_object_hash`, but as an integer, not a string). I'm interested in finishing implementing spl_object_id for php 7.2 I already have working code

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Anatol Belski
> -Original Message- > From: Niklas Keller [mailto:m...@kelunik.com] > Sent: Tuesday, July 4, 2017 11:14 PM > To: Anatol Belski > Cc: Sara Golemon ; Jakub Zelenka ; PHP > Internals > Subject: Re: [PHP-DEV]

Re: [PHP-DEV] [RFC] [Voting] Class Naming

2017-07-04 Thread Christoph M. Becker
On 04.07.2017 at 18:44, schrieb Fleshgrinder wrote: > On 7/1/2017 7:42 PM, Fleshgrinder wrote: >> https://wiki.php.net/rfc/class-naming >> >> Voting starts now and will be open for two weeks (July 15). >> > > Just to clarify something that came up: > > Voting "no" on the first poll means that

Re: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Niklas Keller
> > But the RFC is what you wrote about some days ago. Anything I told is > based on the RFC and the previous conversations. My understanding was, that > you were intended to push the exact RFC to vote. If you tell now there's no > approach and the RFC has to be ignored, then it doesn't help. If

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Anatol Belski
> -Original Message- > From: Niklas Keller [mailto:m...@kelunik.com] > Sent: Tuesday, July 4, 2017 8:21 PM > To: Anatol Belski > Cc: Sara Golemon ; Jakub Zelenka ; PHP > Internals > Subject: Re: [PHP-DEV] Re:

Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found

2017-07-04 Thread Guillermo Cespedes
Hi, Johannes - I have cleaned the build directory. - "source /etc/profile" globally - set the values with "shared, mysqlnd” With the last 3 changes, I have managed to compile PHP. See diff: https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951/revisions?diff=split

Re: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Niklas Keller
2017-07-04 13:11 GMT+02:00 Anatol Belski : > Hi Niklas, > > > -Original Message- > > From: Niklas Keller [mailto:m...@kelunik.com] > > Sent: Monday, July 3, 2017 7:13 PM > > To: Anatol Belski ; Sara Golemon > > Cc: Jakub Zelenka

Re: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Niklas Keller
2017-07-04 13:33 GMT+02:00 Anatol Belski : > Hi, > > > -Original Message- > > From: Niklas Keller [mailto:m...@kelunik.com] > > Sent: Monday, July 3, 2017 8:12 PM > > To: Sara Golemon > > Cc: Anatol Belski ; Jakub Zelenka

Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found

2017-07-04 Thread Johannes Schlüter
On Di, 2017-07-04 at 13:39 -0300, Guillermo Cespedes wrote: > See in: https://lists.launchpad.net/maria-discuss/msg04668.html Thanks, the --version output is of course unfortunate, as I can't distinguish in a good way between MariaDB and a future MySQL 10, except by guessing from program name ...

Re: [PHP-DEV] [RFC] [Voting] Class Naming

2017-07-04 Thread Fleshgrinder
On 7/1/2017 7:42 PM, Fleshgrinder wrote: > https://wiki.php.net/rfc/class-naming > > Voting starts now and will be open for two weeks (July 15). > Just to clarify something that came up: Voting "no" on the first poll means that we are not going to define a rule for class naming. Hence, voting

Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found

2017-07-04 Thread Guillermo Cespedes
Hi, Thanks for the reply # /usr/local/mysql/bin/mariadb_config # /usr/local/mysql/bin/mysql_config # my_print_defaults --mysqld See in: https://lists.launchpad.net/maria-discuss/msg04668.html I also tried the following:

Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found

2017-07-04 Thread Johannes Schlüter
Hi, On Mo, 2017-07-03 at 19:17 -0300, Guillermo Cespedes wrote: > Hi, > > I am compiling MariaDB 10.2.6 and PHP 7.1.6 > > I'm trying it on Debian 8.8 32x / x64 on DigitalOcean > > See the script: > https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951 > > But I have problems

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Anatol Belski
Hi, > -Original Message- > From: Niklas Keller [mailto:m...@kelunik.com] > Sent: Monday, July 3, 2017 8:12 PM > To: Sara Golemon > Cc: Anatol Belski ; Jakub Zelenka ; PHP > Internals > Subject: Re: [PHP-DEV]

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Anatol Belski
Hi Sara, > -Original Message- > From: p...@golemon.com [mailto:p...@golemon.com] On Behalf Of Sara > Golemon > Sent: Monday, July 3, 2017 7:22 PM > To: Anatol Belski > Cc: Niklas Keller ; Jakub Zelenka ; PHP > Internals

RE: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Anatol Belski
Hi Niklas, > -Original Message- > From: Niklas Keller [mailto:m...@kelunik.com] > Sent: Monday, July 3, 2017 7:13 PM > To: Anatol Belski ; Sara Golemon > Cc: Jakub Zelenka ; PHP Internals > Subject: Re:

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

2017-07-04 Thread Andreas Heigl
Am 04.07.17 um 10:19 schrieb Andreas Treichel: > Hello, > >>> One thing though that I thought about: Chapter 4 of RFC 3062 explicitly >>> > states that this function should only be available with confidentially >>> > support like TLS. So perhaps we should check whether the data will be >>> >

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

2017-07-04 Thread Andreas Treichel
Hello, One thing though that I thought about: Chapter 4 of RFC 3062 explicitly > states that this function should only be available with confidentially > support like TLS. So perhaps we should check whether the data will be > transfered via a secure connection and - if not - raise an error?

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

2017-07-04 Thread Andreas Heigl
Hey Côme Am 04.07.17 um 09:19 schrieb Côme Chilliet: [...] > > For ldap_exop_passwd, you proposed: > string|FALSE ldap_exop_passwd(resource $link [, string $user [, string > $oldPassword [, string $newPassword]]] - The returned string is the new > password of the user. Either the given

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

2017-07-04 Thread Côme Chilliet
Le mardi 4 juillet 2017, 07:03:20 Andreas Heigl a écrit : > > In my opinion the code is really ease to read with exceptions. > > > > try { > > $user = ldap_exop_whoami($link); > > } > > catch(Throwable $e) { > > } > > It definitely is easier to read. But let's not try too much in one go. >

Re: [PHP-DEV] Re: [RFC] Distrust SHA-1 Certificates

2017-07-04 Thread Davey Shafik
It should be noted that Certificate Authorities (CAs) haven't been issuing SHA-1 certs since December 31st 2015. I think the best solution if possible, would be to treat MD5 and SHA-1 certs as invalid in _all_ supported versions of PHP and requiring that the verify_peer option be set to false to