Bug #70171 [Opn->Nab]: PHPize all test failing make test

From: Date: Thu, 08 Oct 2015 18:47:43 +0000
Subject: Bug #70171 [Opn->Nab]: PHPize all test failing make test
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196481@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70171&edit=1 ID: 70171 Updated by: bukka@php.net Reported by: rcepeda1993 at gmail dot com Summary: PHPize all test failing make test -Status: Open +Status: Not a bug Type: Bug Package: OpenSSL related Operating System: Ubuntu 15.04 PHP Version: 5.6.11 -Assigned To: +Assigned To: bukka Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2015-07-30 20:52:58] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70171&edit=1

« previous php.bugs (#196481) next »