Bug #61460 [Com]: popen_close_error-win32 expected output is wrong

From: Date: Mon, 02 Apr 2012 22:59:23 +0000
Subject: Bug #61460 [Com]: popen_close_error-win32 expected output is wrong
References: 1  Groups: php.bugs php.qa 
Request: Send a blank email to php-bugs+get-169166@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61460&edit=1

 ID:                 61460
 Comment by:         mattficken@php.net
 Reported by:        mattficken@php.net
 Summary:            popen_close_error-win32 expected output is wrong
 Status:             Open
 Type:               Bug
 Package:            Testing related
 Operating System:   Windows
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

This patch passes on PHP5.3.11rc1 on Windows 7 sp1x64.

It does not break for me on Linux x64 (Gentoo and Fedora 16) with PHP5.3.11rc1.


Previous Comments:
------------------------------------------------------------------------
[2012-03-20 22:56:43] mattficken@php.net

This patch fixes it:

20c20
< echo "*** Testing for error conditions ***\n";
---
> echo "*** Testing for error conditions ***".PHP_EOL;
22a23
> 
23a25
> 
29c31
< echo "\n--- Done ---";
---
> echo PHP_EOL.PHP_EOL."--- Done ---";
44,46c46,48
< resource(%d) of type (stream)
< 'abc.txt' is not recognized as an internal or external command,
< operable program or batch file.
---
> 
> Warning: popen(abc.txt,rw): Invalid argument in %s on line %d
> bool(false)
57c59,61
< --- Done ---
---
> 
> --- Done ---'abc.txt' is not recognized as an internal or external command,
> operable program or batch file.

------------------------------------------------------------------------
[2012-03-20 22:54:08] mattficken@php.net

Description:
------------
Warning messages have changed since test written. Expected output is incorrect. See patch.

Expected result:
----------------
test pass

Actual result:
--------------
test fail




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61460&edit=1


Thread (4 messages)

« previous php.bugs (#169166) next »