FS#43597 - [php] 5.6.5-1: openssl_encrypt/openssl_decrypt not present

Attached to Project: Arch Linux
Opened by Jolan Luff (jolan) - Tuesday, 27 January 2015, 20:42 GMT
Last edited by Pierre Schmitz (Pierre) - Tuesday, 27 January 2015, 21:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

openssl_decrypt and openssl_encrypt functions are not present/working.

http://php.net/manual/en/function.openssl-encrypt.php

Additional info:

$ pacman -Q |grep php
php 5.6.5-1

I looked at the PKGBUILD and it configured using --with-openssl=shared but doesn't appear to be linked to openssl:

jolan@x3:~$ objdump -p /bin/php |grep -i ssl

I have an Ubuntu trusty/LTS/14.04 box that I'm deploying to and it works ok there and I see the link to openssl:

jolan@dbc0:~$ objdump -p /usr/bin/php5 |grep -i ssl
NEEDED libssl.so.1.0.0
0x066a2b20 0x00 05 OPENSSL_1.0.0
required from libssl.so.1.0.0:
0x066a2b20 0x00 02 OPENSSL_1.0.0

Steps to reproduce:

jolan@x3$ php -a
Interactive shell

php > print openssl_encrypt();
PHP Fatal error: Call to undefined function openssl_encrypt() in php shell code on line 1
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Tuesday, 27 January 2015, 21:20 GMT
Reason for closing:  Not a bug
Comment by Pierre Schmitz (Pierre) - Tuesday, 27 January 2015, 21:13 GMT
You probably have not loaded the openssl.so extension in your php.ini file.
Comment by Jolan Luff (jolan) - Tuesday, 27 January 2015, 21:18 GMT
Oops, yes, that works. Sorry for the noise.

Loading...