php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61950 Failing tests
Submitted: 2012-05-05 07:42 UTC Modified: 2012-05-18 13:34 UTC
From: remi@php.net Assigned: remi (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 5.4.2 OS: GNU/Linux (Fedora 16)
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: remi@php.net
New email:
PHP Version: OS:

 

 [2012-05-05 07:42 UTC] remi@php.net
Description:
------------
Most of the tests provided in sapi/cgi/tests are failing.

Failing tests (001 to 009) use var_dump(`$php ...`); which break expected output (CR/LF).
Others working tests (010, 011) use echo(`$php ...`); 

The attached patch proposal use passthru, which seems another working solution.

With this patch applied, all the 11 tests return "PASS".

Test script:
---------------
$ pear run-tests 001.phpt

Expected result:
----------------
Running 1 tests
PASS version string[001.phpt]
TOTAL TIME: 00:00
1 PASSED TESTS
0 SKIPPED TESTS


Actual result:
--------------
Running 1 tests
FAIL version string[001.phpt]
wrote log to "/dev/shm/php-5.4.2/sapi/cgi/tests/run-tests.log"
TOTAL TIME: 00:01
0 PASSED TESTS
0 SKIPPED TESTS
1 FAILED TESTS:
001.phpt

$ cat 001.out
string(151) "PHP 5.4.2 (cgi-fcgi) (built: May  4 2012 14:44:54)\nCopyright (c) 1997-2012 The PHP Group\nZend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies\n"


Patches

php-cgi-tests.patch (last revision 2012-05-05 07:42 UTC by remi)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-18 13:34 UTC] remi@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The issue was in a broken xdebug version
 [2012-05-18 13:34 UTC] remi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: remi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC