Skip to content

error making tests on fedora 34 #18712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
apolinux opened this issue May 30, 2025 · 4 comments
Closed

error making tests on fedora 34 #18712

apolinux opened this issue May 30, 2025 · 4 comments

Comments

@apolinux
Copy link

Description

I compiled php 8.2.28 in fedora 34 and after make tests I got a error report file.

PHP Version

PHP 8.2.28 (cli) (built: May 30 2025 12:56:59) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.28, Copyright (c) Zend Technologies

Operating System

Fedora 34

@apolinux
Copy link
Author

@Girgias
Copy link
Member

Girgias commented May 31, 2025

Note that Fedora 34 has been EOL since 2022-06-07.

The relevant part of the file is:

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
GHSA-hgf5-96fm-v528: Header parser of http stream wrapper does not handle folded headers (correct start pos) [ext/standard/tests/http/ghsa-hgf5-96fm-v528-002.phpt]
GHSA-hgf5-96fm-v528: Header parser of http stream wrapper does not handle folded headers (correct middle pos) [ext/standard/tests/http/ghsa-hgf5-96fm-v528-003.phpt]
Bug #80092 (ZTS + preload = segfault on shutdown) [sapi/cli/tests/bug80092.phpt]
=====================================================================

=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
curl_upkeep() function [ext/curl/tests/curl_upkeep_001.phpt] (warn: Test passed on retry attempt)
Phar: bug #69958: Segfault in Phar::convertToData on invalid file [ext/phar/tests/bug69958.phpt] (warn: XFAIL section but test passes)
=====================================================================


================================================================================
/usr/local/src/php-8.2.28/ext/standard/tests/http/ghsa-hgf5-96fm-v528-002.phpt
================================================================================
array(6) {
  [0]=>
  string(14) "GET / HTTP/1.1"
  [1]=>
  string(20) "Host: 127.0.0.1:4955"
  [2]=>
  string(17) "Connection: close"
  [3]=>
  string(23) "Authorization: Bearer x"
  [4]=>
  string(0) ""
  [5]=>
  string(0) ""
}
array(2) {
  [0]=>
  string(15) "HTTP/1.0 200 Ok"
  [1]=>
  string(38) "Content-Type: text/html; charset=utf-8"
}
================================================================================
--
       [0]=>
       string(14) "GET / HTTP/1.1"
       [1]=>
005+   string(20) "Host: 127.0.0.1:4955"
005-   string(21) "Host: 127.0.0.1:%d"
       [2]=>
       string(17) "Connection: close"
       [3]=>
--
================================================================================



================================================================================
/usr/local/src/php-8.2.28/ext/standard/tests/http/ghsa-hgf5-96fm-v528-003.phpt
================================================================================
array(7) {
  [0]=>
  string(14) "GET / HTTP/1.1"
  [1]=>
  string(20) "Host: 127.0.0.1:9299"
  [2]=>
  string(17) "Connection: close"
  [3]=>
  string(11) "Cookie: x=y"
  [4]=>
  string(23) "Authorization: Bearer x"
  [5]=>
  string(0) ""
  [6]=>
  string(0) ""
}
array(2) {
  [0]=>
  string(15) "HTTP/1.0 200 Ok"
  [1]=>
  string(38) "Content-Type: text/html; charset=utf-8"
}
================================================================================
--
       [0]=>
       string(14) "GET / HTTP/1.1"
       [1]=>
005+   string(20) "Host: 127.0.0.1:9299"
005-   string(21) "Host: 127.0.0.1:%d"
       [2]=>
       string(17) "Connection: close"
       [3]=>
--
================================================================================



================================================================================
/usr/local/src/php-8.2.28/sapi/cli/tests/bug80092.phpt
================================================================================

================================================================================
001+ 
001- preloaded
002- PHP %s
003- Copyright (c) The PHP Group
004- Zend Engine %s
005-     with Zend OPcache %s
================================================================================

The GHSA tests are easy to fix as it is just an assertion failure with the string length.

For bug80092.phpt I guess we need to have an EXTENSIONS section with opcache? Pinging @nielsdos as you wrote that test.

@Girgias
Copy link
Member

Girgias commented May 31, 2025

Also note that 8.2 is no longer under active maintenance, so the test fixes will only land at minimum in 8.3

@nielsdos
Copy link
Member

For bug80092.phpt I guess we need to have an EXTENSIONS section with opcache? Pinging @nielsdos as you wrote that test.

No, opcache is dynamically loaded in a subprocess.
The issue is likely already fixed in 8.3+ by: c524dc6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants