note 104424 added to phardata.setsignaturealgorithm

From: Date: Tue, 14 Jun 2011 21:06:17 +0000
Subject: note 104424 added to phardata.setsignaturealgorithm
Groups: php.notes 
Request: Send a blank email to php-notes+get-180533@lists.php.net to get a copy of this message
As a note, the docs don't show the (optional) second parameter nor mention the existence of the Phar::OPENSSL class constant also available for use with this method. To sign a phar with OpenSSL, for example... <?php $phar = new Phar('somephar.phar'); // ... add your files and such $phar->setSignatureAlgorithm(Phar::OPENSSL, file_get_contents('private_key_here.pem')); // ... do whatever else you want afterwards here ... ?> Hope this proves useful to someone. ---- Server IP: 69.147.83.197 Probable Submitter: 75.132.162.225 ---- Manual Page -- http://www.php.net/manual/en/phardata.setsignaturealgorithm.php Edit -- https://master.php.net/note/edit/104424 Del: integrated -- https://master.php.net/note/delete/104424/integrated Del: useless -- https://master.php.net/note/delete/104424/useless Del: bad code -- https://master.php.net/note/delete/104424/bad+code Del: spam -- https://master.php.net/note/delete/104424/spam Del: non-english -- https://master.php.net/note/delete/104424/non-english Del: in docs -- https://master.php.net/note/delete/104424/in+docs Del: other reasons-- https://master.php.net/note/delete/104424 Reject -- https://master.php.net/note/reject/104424 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180533) next »