Re: Typecasting question

From: Date: Fri, 03 Feb 2012 21:38:44 +0000
Subject: Re: Typecasting question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316462@lists.php.net to get a copy of this message
Am 03.02.12 17:11, schrieb jas: > I am familiar with typecasting. Booleans, ints, strings, etc. > > However while using an extension, more specifically the OpenSSL > extension I have come across a problem I am not entirely familiar with. > > I have an array that looks like... > > array('config' => 'config/openssl.cnf', > 'encrypt_key' => true, > 'private_key_type' => 'OPENSSL_KEYTYPE_RSA', remove the quotes around the constant, it must be 'private_key_type' => OPENSSL_KEYTYPE_RSA, > 'digest_algorithm' => 'sha256', > 'private_key_bits' => 512, > 'x509_extensions' => 'usr_cert', > 'encrypt_key_cipher' => 'OPENSSL_CIPHER_3DES'); same here -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: marco@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#316462) next »