This is a tad tricky but here is what happened.
With a build of 5.6.27 I had no problems until the time came to run
"make test" wherein everything seems normal until this :
FAIL Basic bitwise stream crypto context flag assignment
[ext/openssl/tests/stream_crypto_flags_001.phpt]
FAIL TLSv1.1 and TLSv1.2 bitwise stream crypto flag assignment
[ext/openssl/tests/stream_crypto_flags_002.phpt]
FAIL Server bitwise stream crypto flag assignment
[ext/openssl/tests/stream_crypto_flags_003.phpt]
FAIL Specific protocol method specification
[ext/openssl/tests/stream_crypto_flags_004.phpt]
PHP Fatal error: Out of memory (allocated 1631059968) (tried to
allocate 1623719982 bytes) in
/usr/local/build/php-5.6.27_SunOS5.10_sparcv9.001/run-tests.php on line 1120
gmake: *** [test] Error 255
I was going to look into how to debug this but 5.6.28 released.
Therefore I perform a normal configure and build as per usual and again
"make test" fails fatal in the same place but with a different message :
FAIL Basic bitwise stream crypto context flag assignment
[ext/openssl/tests/stream_crypto_flags_001.phpt]
FAIL TLSv1.1 and TLSv1.2 bitwise stream crypto flag assignment
[ext/openssl/tests/stream_crypto_flags_002.phpt]
FAIL Server bitwise stream crypto flag assignment
[ext/openssl/tests/stream_crypto_flags_003.phpt]
FAIL Specific protocol method specification
[ext/openssl/tests/stream_crypto_flags_004.phpt]
PHP Fatal error: String size overflow in
/usr/local/build/php-5.6.28_SunOS5.10_sparcv9.001/run-tests.php on line 1120
gmake: *** [test] Error 255
So the question is, how do I run whatever specific test is creating this
problem in a verbose manner to get more information?
Please bear in mind that 5.6.26 builds and tests just fine :
$ /usr/local/bin/php --version
PHP 5.6.26 (cli) (built: Sep 21 2016 14:04:51)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
Dennis
FAIL Specific protocol method specification
[ext/openssl/tests/stream_crypto_flags_004.phpt]
PHP Fatal error: String size overflow in
/usr/local/build/php-5.6.28_SunOS5.10_sparcv9.001/run-tests.php on line
1120
gmake: *** [test] Error 255So the question is, how do I run whatever specific test is creating this
problem in a verbose manner to get more information?
https://qa.php.net/running-tests.php has instructions for using the test
framework.
Briefly: make test TESTS=path/to/test.phpt
If you haven't already found it, you should be able to find
.(diff|exp|log|out|php|sh) files for the tests that failed in
ext/openssl/tests, so hopefully that helps to find which test failed.
Depending on the OS, it may be one of these:
ext/openssl/tests/stream_server_reneg_limit.phpt
ext/openssl/tests/streams_crypto_method.phpt
Good hunting,
David
--
David Lundgren
dlundgren@syberisle.net
GPG: 0x26F54D7F