Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-24 Thread Lars Strojny
Hi everyone, adding UUID functionality to the core would be very cool. Especially in times where we create more and more primary keys in the code, not in the database. cu, Lars Am 23.08.2013 um 23:53 schrieb Yasuo Ohgaki : > Hi David, > > On Fri, Aug 23, 2013 at 12:03 PM, David Muir wrote: >

Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-24 Thread Nikita Popov
On Sat, Aug 24, 2013 at 11:28 AM, Lars Strojny wrote: > Hi everyone, > > adding UUID functionality to the core would be very cool. Especially in > times where we create more and more primary keys in the code, not in the > database. > > cu, > Lars > We already have a great (version 4) UUID implem

Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-24 Thread Lars Strojny
Hi Nikita, Am 24.08.2013 um 12:08 schrieb Nikita Popov : [] > We already have a great (version 4) UUID implementation called > mcrypt_create_iv, just minus the fixed sequences and fancy formatting. > Apart from moving this to core (not requiring mcrypt/openssl) and maybe > adding alphabet supp

Re: [PHP-DEV] Authenticated Encryption in PHP

2013-08-24 Thread Jakub Zelenka
Hi, I am currently looking for an aes-gcm impl in PHP, and contemplating > building my own openssl wrapper to expose access. > You can actually use aes-256-gcm or its 128 and 192 variants (check openssl_get_cipher_methods). GCM is a cipher mode so you can use it in openssl_encrypt and openssl_dec

Re: [PHP-DEV] Authenticated Encryption in PHP

2013-08-24 Thread Jan Ehrhardt
Jakub Zelenka in php.internals (Sat, 24 Aug 2013 20:16:21 +0100): >However the current php openssl extension is not very nice. It's missing >lots of features and functions supported in OpenSSL lib. The API is only >functional and the implementation is not great. > >I decided to create a new objecti

[PHP-DEV] pdo_mysql and bug_39858.phpt

2013-08-24 Thread Stas Malyshev
Hi! I'm looking into tests fails that I get with mysqlnd and mysql enabled, and on bug_39858.phpt I've noticed a strange thing. The code goes like this: $stmt = $db->prepare("CALL p()"); $stmt->execute(); do { var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));