Bug #61950 [NEW]: Failing tests
From: remi
Operating system: GNU/Linux (Fedora 16)
PHP version: 5.4.2
Package: CGI/CLI related
Bug Type: Bug
Bug description:Failing tests
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"
--
Edit bug report at https://bugs.php.net/bug.php?id=61950&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61950&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61950&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61950&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61950&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61950&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61950&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61950&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61950&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61950&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61950&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61950&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61950&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61950&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61950&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61950&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61950&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61950&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61950&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61950&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61950&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61950&r=mysqlcfg
Thread (2 messages)
- remi@php.net