php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61459 popen_close_basic-win32 can't run sort.exe
Submitted: 2012-03-20 22:51 UTC Modified: 2012-03-28 17:56 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ITALOLINS59 at HOTMAIL dot COM Assigned: ab (profile)
Status: Closed Package: Testing related
PHP Version: 5.3.10 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ITALOLINS59 at HOTMAIL dot COM
New email:
PHP Version: OS:

Further comment on this bug is unnecessary.

 

 [2012-03-20 22:51 UTC] ITALOLINS59 at HOTMAIL dot COM
Description:
------------
popen("sort", "w") fails if variables_order="GPCS"
this is set in the default INI file. it doesn't seem to be changeable in the --INI-- section of PHPT test. also, doing: ini_set('variables_order', ''); doesn't work!

the only solutions are to either put the absolute path here, or remove variables_order= from PHP.ini (setting it in run-test's default INI will fail too).

since we can't depend on PHP.ini being set a certain way, have to put the absolute path here.

Test fails

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

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

004+ 'sort' is not recognized as an internal or external command,
005+ operable program or batch file.
004- aaa
005- ddd
006- ggg
007- sss



Expected result:
----------------
Test pass


Patches

popen_close_error-win32 (last revision 2012-03-20 22:51 UTC by mattficken@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-20 22:51 UTC] mattficken@php.net
The following patch has been added/updated:

Patch Name: popen_close_error-win32
Revision:   1332283902
URL:        https://bugs.php.net/patch-display.php?bug=61459&patch=popen_close_error-win32&revision=1332283902
 [2012-03-20 22:52 UTC] mattficken@php.net
-Summary: popen_close_error-win32 can't run sort.exe +Summary: popen_close_basic-win32 can't run sort.exe
 [2012-03-21 05:40 UTC] pajoye@php.net
Hi,

Please add a SKIPIF section testing if sort.exe exists in this path. 

Thanks!
 [2012-03-21 05:40 UTC] pajoye@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mattficken
 [2012-03-26 18:57 UTC] ITALOLINS59 at HOTMAIL dot COM
-: mattficken@php.net +: ITALOLINS59 at HOTMAIL dot COM -Status: Assigned +Status: Aberto
 [2012-03-26 19:00 UTC] pajoye@php.net
-Status: Aberto +Status: Assigned
 [2012-03-26 20:03 UTC] pajoye@php.net
-Block user comment: No +Block user comment: Yes
 [2012-03-28 17:54 UTC] point@php-dev-dell.(none)@php.net
Automatic comment on behalf of point@php-dev-dell.(none)
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eeab3be3037e2c537393f630b496017c9f888736
Log: Fix bug #61459 popen_close_basic-win32 can't run sort.exe
 [2012-03-28 17:56 UTC] ab@php.net
-Status: Assigned +Status: Closed -Assigned To: mattficken +Assigned To: ab
 [2012-03-28 17:56 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-03-29 04:23 UTC] point@php-dev-dell.(none)@php.net
Automatic comment on behalf of point@php-dev-dell.(none)
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eeab3be3037e2c537393f630b496017c9f888736
Log: Fix bug #61459 popen_close_basic-win32 can't run sort.exe
 [2012-04-02 22:57 UTC] mattficken@php.net
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.
 [2014-10-07 23:28 UTC] stas@php.net
Automatic comment on behalf of point@php-dev-dell.(none)
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=eeab3be3037e2c537393f630b496017c9f888736
Log: Fix bug #61459 popen_close_basic-win32 can't run sort.exe
 [2014-10-07 23:38 UTC] stas@php.net
Automatic comment on behalf of point@php-dev-dell.(none)
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=eeab3be3037e2c537393f630b496017c9f888736
Log: Fix bug #61459 popen_close_basic-win32 can't run sort.exe
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC