php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch popen_close_error-win32 for Testing related Bug #61459

Patch version 2012-03-20 22:51 UTC

Return to Bug #61459 | Download this patch
Patch Revisions:

Developer: mattficken@php.net

< $file_handle = popen("sort", "w");
---
> // 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
> //	also, doing: ini_set('variables_order', ''); doesn't work!
> //
> // the only solution is 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.
> $file_handle = popen("/windows/system32/sort", "w");
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC