php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65678 the test cli_process_title_windows will fails on particular environnement
Submitted: 2013-09-16 09:48 UTC Modified: 2013-09-16 19:11 UTC
From: pierre dot renaudet at gmail dot com Assigned:
Status: Closed Package: Testing related
PHP Version: master-Git-2013-09-16 (Git) OS: Windows Only
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pierre dot renaudet at gmail dot com
New email:
PHP Version: OS:

 

 [2013-09-16 09:48 UTC] pierre dot renaudet at gmail dot com
Description:
------------
The test : sapi/cli/tests/cli_process_title_windows.phpt

Will fail when user has a User script at startup of Powershell.
To correct this issue, we can use two parameters :
 "-ExecutionPolicy RemoteSigned" that Enable all script on computer (so User are 
enable
 "-NoProfile" I think it's a better solution that's correct the initial problem...

Second issue, the test for Windows 8 will fails if the test was run as 
administrator and on a non-English OS, because the String searched is English-OS 
only.
To correct this problem, search if the end of title process is ": Windows 
Powershell"


Patches

cli_process_title_windows8_nonEnglish (last revision 2013-09-16 09:49 UTC by pierre dot renaudet at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-16 19:11 UTC] ab@php.net
Before the patch is applied, could you please post the diff of the phpt?

Thanks
 [2013-09-16 19:11 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-09-17 07:20 UTC] pierre dot renaudet at gmail dot com
I am not sure that I could do, so I have run script before and after patch with 
--show-diff

=== BEFORE PATCH ===

Release\php.exe -d open_basedir= -d output_buffering=0 run-tests.php 
sapi\cli\tests\cli_process_title_windows.phpt -p "Release\php.exe" --show-diff

=====================================================================
PHP         : Release\php.exe
PHP_SAPI    : cli
PHP_VERSION : 5.6.0-dev
ZEND_VERSION: 2.6.0-dev
PHP_OS      : WINNT - Windows NT PIERRE-W8 6.2 build 9200 (Windows 8 Business Ed
ition) i586
INI actual  : C:\Programmes\PHP\phpdev\vc11\x86\php-src
More .INIs  :
CWD         : C:\Programmes\PHP\phpdev\vc11\x86\php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
TEST 1/1 [C:\Programmes\PHP\phpdev\vc11\x86\php-src\sapi\cli\tests\cli_process_t
itle_windows.phpt]
========DIFF========
001+ . : Impossible de charger le fichier
002+ 
C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps
1,
003+ car l'exécution de scripts est désactivée sur ce système. Pour plus
004+ d'informations, consultez about_Execution_Policies à l'adresse
001- *** Testing setting the process title ***
002- Successfully set title
003- Successfully verified title using get-process
004- Successfully verified title using get
005+ http://go.microsoft.com/fwlink/?LinkID=135170.
006+ Au caractère Ligne:1 : 3
007+ + .
008+ 
'C:\Users\%username%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.p
s1'
009+ +
010+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
011+     + CategoryInfo          : Erreur de sécurité : (:) [], PSSecurityExcept
ion
012+     + FullyQualifiedErrorId : UnauthorizedAccess
013+ *** Testing setting the process title ***
014+ Successfully set title
015+ Successfully verified title using get-process
016+ Successfully verified title using get
========DONE========
FAIL Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x
86\php-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x86\ph
p-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================

=== AFTER PATCH ===
Release\php.exe -d open_basedir= -d output_buffering=0 run-tests.php 
sapi\cli\tests\cli_process_title_windows.phpt -p "Release\php.exe" --show-diff

=====================================================================
PHP         : Release\php.exe
PHP_SAPI    : cli
PHP_VERSION : 5.6.0-dev
ZEND_VERSION: 2.6.0-dev
PHP_OS      : WINNT - Windows NT COMPUTERNAME 6.2 build 9200 (Windows 8 Business 
Ed
ition) i586
INI actual  : C:\Programmes\PHP\phpdev\vc11\x86\php-src
More .INIs  :
CWD         : C:\Programmes\PHP\phpdev\vc11\x86\php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
TEST 1/1 [C:\Programmes\PHP\phpdev\vc11\x86\php-src\sapi\cli\tests\cli_process_t
PASS Check cli_process_title support in Windows [C:\Programmes\PHP\phpdev\vc11\x
86\php-src\sapi\cli\tests\cli_process_title_windows.phpt]
=====================================================================
Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    1 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================
 [2013-09-20 14:00 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f146c2bb0dcba3307f08a839554be056e660f34
Log: Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
 [2013-09-20 14:00 UTC] ab@php.net
-Status: Feedback +Status: Closed
 [2013-11-17 09:30 UTC] laruence@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8f146c2bb0dcba3307f08a839554be056e660f34
Log: Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 02 11:01:28 2025 UTC