note 116765 added to function.openssl-pkey-new

From: Date: Tue, 24 Feb 2015 21:36:44 +0000
Subject: note 116765 added to function.openssl-pkey-new
Groups: php.notes 
Request: Send a blank email to php-notes+get-201802@lists.php.net to get a copy of this message
If you try and generate a new key using openssl_pkey_new(), and need to specify the size of the key, the key MUST be type-bound to integer // works $keysize = 1024; $ssl = openssl_pkey_new (array('private_key_bits' => $keysize)); // fails $keysize = "1024"; $ssl = openssl_pkey_new (array('private_key_bits' => $keysize)); // works (force to int) $keysize = "1024"; $ssl = openssl_pkey_new (array('private_key_bits' => (int)$keysize)); ---- Server IP: 72.52.91.14 Probable Submitter: 209.153.240.2 ---- Manual Page -- http://php.net/manual/en/function.openssl-pkey-new.php Edit -- https://master.php.net/note/edit/116765 Del: integrated -- https://master.php.net/note/delete/116765/integrated Del: useless -- https://master.php.net/note/delete/116765/useless Del: bad code -- https://master.php.net/note/delete/116765/bad+code Del: spam -- https://master.php.net/note/delete/116765/spam Del: non-english -- https://master.php.net/note/delete/116765/non-english Del: in docs -- https://master.php.net/note/delete/116765/in+docs Del: other reasons-- https://master.php.net/note/delete/116765 Reject -- https://master.php.net/note/reject/116765 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201802) next »