php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76402 run-tests can never succeed
Submitted: 2018-06-01 11:08 UTC Modified: 2020-09-14 11:50 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: 180601 at vmlinuz dot nl Assigned: cmb (profile)
Status: Closed Package: mailparse (PECL)
PHP Version: 7.2.6 OS: RHEL6
Private report: No CVE-ID: None
 [2018-06-01 11:08 UTC] 180601 at vmlinuz dot nl
Description:
------------
While building a RPM for this pecl module, I came across errors when running "make test" for tests/011.phpt, tests/bug001.phpt and tests/parse_test_messages.phpt. 

- 011.phpt: this test expects 7 results, but there are only 4 input files bundled in testdata.
- bug001.phpt: this test wants to use a non-existent file testdata/m0001.txt
Above defects mean the test can never succeed.

Also, parse_test_messages.phpt segfaults after running, which could mean there's a memory leak. This segfault does not occur when running $mime=null; just before exitting the test-script in order to forcefully free the memory.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-09-14 11:50 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-09-14 11:50 UTC] cmb@php.net
This issue is fixed as of mailparse 3.0.3.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC