php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61668 ext\standard\tests\file\rename_variation13-win32.phpt fails
Submitted: 2012-04-08 11:29 UTC Modified: 2012-04-10 13:13 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: *Directory/Filesystem functions
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
 [2012-04-08 11:29 UTC] ab@php.net
Description:
------------
Test diff on php 5.3:

040+ -- 6 testing '^@' string --
040- -- 6 testing '

Test diff on php 5.4:

005+ Warning: rename(-1,C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp): The system cannot find the file specified. (code: 2) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
005- Warning: rename(-1,%safile.tmp): The system cannot find the file specified. (code: 2) in %srename_variation13-win32.php on line 50
010+ Warning: rename(1,C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp): The system cannot find the file specified. (code: 2) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
010- Warning: rename(1,%safile.tmp): The system cannot find the file specified. (code: 2) in %srename_variation13-win32.php on line 50
042+ Warning: rename() expects parameter 2 to be a valid path, string given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 45
042- Warning: rename() expects parameter 2 to be a valid path, string given in %srename_variation13-win32.php on line 42
045+ Warning: file_exists() expects parameter 1 to be a valid path, string given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 46
045- Warning: file_exists() expects parameter 1 to be a valid path, string given in %srename_variation13-win32.php on line 43
047+ Warning: rename() expects parameter 1 to be a valid path, string given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
047- Warning: rename() expects parameter 1 to be a valid path, string given in %srename_variation13-win32.php on line 50
051+ Warning: rename() expects parameter 2 to be a valid path, array given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 45
051- Warning: rename() expects parameter 2 to be a valid path, array given in %srename_variation13-win32.php on line 42
054+ Warning: file_exists() expects parameter 1 to be a valid path, array given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 46
054- Warning: file_exists() expects parameter 1 to be a valid path, array given in %srename_variation13-win32.php on line 43
056+ Warning: rename() expects parameter 1 to be a valid path, array given in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
056- Warning: rename() expects parameter 1 to be a valid path, array given in %srename_variation13-win32.php on line 50
060+ Warning: rename(C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp,/no/such/file/dir): The system cannot find the path specified. (code: 3) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 45
060- Warning: rename(%safile.tmp,/no/such/file/dir): The system cannot find the path specified. (code: 3) in %srename_variation13-win32.php on line 42
063+ Warning: rename(/no/such/file/dir,C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp): The system cannot find the path specified. (code: 3) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
063- Warning: rename(/no/such/file/dir,%safile.tmp): The system cannot find the path specified. (code: 3) in %srename_variation13-win32.php on line 50
067+ Warning: rename(C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp,php/php): The system cannot find the path specified. (code: 3) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 45
067- Warning: rename(%safile.tmp,php/php): The system cannot find the path specified. (code: 3) in %srename_variation13-win32.php on line 42
070+ Warning: rename(php/php,C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file/renameVar13/afile.tmp): The system cannot find the path specified. (code: 3) in C:\php-sdk\php54\vc9\x86\php-src\ext\standard\tests\file\rename_variation13-win32.php on line 53
070- Warning: rename(php/php,%safile.tmp): The system cannot find the path specified. (code: 3) in %srename_variation13-win32.php on line 50

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

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

Patches

61668_php5.4.diff (last revision 2012-04-08 13:25 UTC by ab@php.net)
61668_php5.3.diff (last revision 2012-04-08 12:26 UTC by ab@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-08 12:26 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 61668_php5.3.diff
Revision:   1333887976
URL:        https://bugs.php.net/patch-display.php?bug=61668&patch=61668_php5.3.diff&revision=1333887976
 [2012-04-08 12:26 UTC] ab@php.net
61668_php5.3.diff should be applied with

git apply --binary 61668_php5.3.diff
 [2012-04-08 13:25 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 61668_php5.4.diff
Revision:   1333891530
URL:        https://bugs.php.net/patch-display.php?bug=61668&patch=61668_php5.4.diff&revision=1333891530
 [2012-04-08 13:28 UTC] ab@php.net
php 5.4 has additionally the line numbers shifted in the test, apply as well with 

git apply --binary 61668_php5.4.diff

git thinks it's binary because of the \0 byte, previously it wasn't echoed and was not in the output check, but now it must be there
 [2012-04-10 02:02 UTC] mattficken@php.net
The patch works for me on Windows 7 and Gentoo Linux (x86 & x64) on php-5-3-r0f180a6.
 [2012-04-10 13:13 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-04-10 13:13 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-04-10 13:26 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b0cb29db8718f0037de10947a63f90a3f4f4d6a9
Log: Fixed bug #61668 ext\standard\tests\file\rename_variation13-win32.phpt fails
 [2014-10-07 23:26 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=b0cb29db8718f0037de10947a63f90a3f4f4d6a9
Log: Fixed bug #61668 ext\standard\tests\file\rename_variation13-win32.phpt fails
 [2014-10-07 23:37 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=b0cb29db8718f0037de10947a63f90a3f4f4d6a9
Log: Fixed bug #61668 ext\standard\tests\file\rename_variation13-win32.phpt fails
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC