php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75727 PHP OpenSSL Error “undefined symbol: OPENSSL_init_ssl”
Submitted: 2017-12-24 05:33 UTC Modified: 2018-05-05 21:52 UTC
Votes:8
Avg. Score:4.2 ± 0.8
Reproduced:6 of 7 (85.7%)
Same Version:2 (33.3%)
Same OS:0 (0.0%)
From: wenhao01 at 126 dot com Assigned:
Status: No Feedback Package: Dynamic loading
PHP Version: 7.2.0 OS: Centos6.5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-12-24 05:33 UTC] wenhao01 at 126 dot com
Description:
------------
I have enabled the openssl.so in php.ini. My PHP version is 7.2.0, and Openssl version is 1.1.1. But when I use the command 'php -v',there's a error

"php: symbol lookup error: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20170718/openssl.so: undefined symbol: OPENSSL_init_ssl".

How can I solve the problem?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-11 01:48 UTC] bishop@php.net
-Status: Open +Status: Feedback -Package: PHAR related +Package: Dynamic loading
 [2018-01-11 01:48 UTC] bishop@php.net
Looks like PHP was built against OpenSSL < 1.1, not OpenSSL 1.1.1 as claimed. Please attach the output of the configure command used to build PHP.

See also the same question on SO, which may over time provide other information:
https://stackoverflow.com/questions/47957434/php-openssl-error-undefined-symbol-openssl-init-ssl
 [2018-05-05 21:52 UTC] requinix@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC