|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72363 Cannot find OpenSSL evp.h
Submitted: 2016-06-08 21:10 UTC Modified: -
Avg. Score:3.9 ± 1.1
Reproduced:9 of 9 (100.0%)
Same Version:3 (33.3%)
Same OS:5 (55.6%)
From: kearney dot taaffe at gmail dot com Assigned:
Status: Open Package: *Compile Issues
PHP Version: 7.0.7 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kearney dot taaffe at gmail dot com
New email:
PHP Version: OS:


 [2016-06-08 21:10 UTC] kearney dot taaffe at gmail dot com
When trying to build extension mysqlnd using 'phpize', the follow error keeps popping up:
    configure: error: Cannot find OpenSSL's <evp.h>

The cause of this is because after running the command 'phpize' the configure script has a variable (PHP_OPENSSL_DIR) that is not set "yes"

PHP_OPENSSL_DIR is never initialized. So, the following code found on line 4332 never gets executed

    if test "$PHP_OPENSSL" = "yes" && test -x "$PKG_CONFIG" && \
       $PKG_CONFIG --exists openssl; then
        # checks openssl version, and other stuff

Test script:
# download and extract latest PHP 7 code
compile PHP using the following
./configure --prefix=$HOME/php7
make install
cd $HOME/php7
ln -s bin/php-config php-config
ln -s bin/php php
ln -s bin/phpize phpize
cd the directory where PHP source code is
cd ext
cd mysqlnd
# rename the configXX.m4 file to config.m4
./configure --with-php-config=$HOME/php7/php-config

Expected result:
The extension should be compiled and a shared object should be built and moved to the extension directory

Actual result:
./configure returns an error


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-19 03:39 UTC] 447405878 at qq dot com
Php version 7.0.8 has similar question;
 [2017-06-16 07:28 UTC] nlencebo at gmail dot com
Php version 7.1.15 has similar question;
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 29 19:01:24 2020 UTC