php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70171 PHPize all test failing make test
Submitted: 2015-07-30 20:52 UTC Modified: 2015-10-08 18:47 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rcepeda1993 at gmail dot com Assigned: bukka (profile)
Status: Not a bug Package: OpenSSL related
PHP Version: 5.6.11 OS: Ubuntu 15.04
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rcepeda1993 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-07-30 20:52 UTC] rcepeda1993 at gmail dot com
Description:
------------
in php-x-x/ext/openssl config.m4 does not come with php. Instead, it includes config0.m4. I renamed it so phpize can find the config file to compile the source code. Next, phpize reported that evp.h did not exist for openssl which i verified its location in /usr/includes/openssl I used configure options to point to that directory and finally it configured. Next, I used make, then make test (as suggested by make). I run make test and all the tests fail. Why are all of my tests failing? 

Test script:
---------------
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   27
---------------------------------------------------------------------

Number of tests :   91                89
Tests skipped   :    2 (  2.2%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   89 ( 97.8%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :   13 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
OpenSSL private key functions [tests/001.phpt]
openssl_seal() tests [tests/002.phpt]
openssl_pkcs7_decrypt() and invalid parameters [tests/003.phpt]
openssl_csr_new() tests [tests/004.phpt]
openssl_csr_get_subject() tests [tests/005.phpt]
openssl_pkey_new() with an empty sub-array arg generates a malformed resource [tests/006.phpt]
openssl_x509_read() and openssl_x509_free() tests [tests/007.phpt]
openssl_x509_export() and openssl_x509_export_to_file() tests [tests/008.phpt]
openssl_x509_check_private_key() tests [tests/009.phpt]
openssl_encrypt() and openssl_decrypt() tests [tests/011.phpt]
openssl_seal() error tests [tests/012.phpt]
openssl_open() tests [tests/013.phpt]
openssl_private_encrypt() tests [tests/014.phpt]
openssl_public_encrypt() tests [tests/015.phpt]
openssl_public_decrypt() tests [tests/016.phpt]
openssl_private_decrypt() tests [tests/017.phpt]


Expected result:
----------------
test should have passed.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-08 18:47 UTC] bukka@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: bukka
 [2015-10-08 18:47 UTC] bukka@php.net
First of all, this is certainly not a bug in openssl ext. You are trying to do something that is not documented or supported by phpize (config0.m4...)

I'd probably check what the test prints.

php tests/001.phpt

Make sure that you don't try to load it to the PHP already compiled with openssl ext statically (you can't load the same ext twice [duplicating constants, function and so on).

In general I wouldn't compile openssl ext dynamically but if you have got a valid use case to do that, then you can open a feature request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC