Re: Typecasting question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux