php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61667 ext\standard\tests\file\glob_variation-win32.phpt fails
Submitted: 2012-04-08 11:12 UTC Modified: 2012-04-10 13:06 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.3.10 OS: windows
Private report: No CVE-ID: None
 [2012-04-08 11:12 UTC] ab@php.net
Description:
------------
Test diff:

240+ bool(false)
241+ bool(false)
242+ bool(false)
243+ bool(false)
244+ bool(false)
245+ bool(false)
246+
247+ -- Iteration 9 --
248-   string(%d) "%s/glob_variation/WONDER5"
255- -- Iteration 9 --
256+   string(33) "$file_path/glob_variation/wonder5"
263+ -- Iteration 10 --
264-   string(%d) "$file_path/glob_variation/wonder5"
271- -- Iteration 10 --
272+   string(80) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/?wonder?"
279+ -- Iteration 11 --
280-   string(%d) "%s/glob_variation/?wonder?"
287- -- Iteration 11 --
288+   string(79) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder?"
295+ -- Iteration 12 --
296-   string(%d) "%s/glob_variation/wonder?"
303- -- Iteration 12 --
304- array(0) {
304+   string(1) "1"
306- array(0) {
308- array(0) {
311+ *** Testing glob() with pattern within braces ***
312+ array(1) {
313+   [0]=>
314+   string(83) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder12345"
312-   string(%d) "1"
316+
317+ *** Testing glob() on directories ***
318+ -- Iteration 1 --
319+ array(1) {
320+   [0]=>
321+   string(79) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder1"
318-
319- *** Testing glob() with pattern within braces ***
322-   string(%d) "%s/glob_variation/wonder12345"
323+ -- Iteration 2 --
324+ array(1) {
325+   [0]=>
326+   string(79) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder1"
324-
325- *** Testing glob() on directories ***
326- -- Iteration 1 --
328+ -- Iteration 3 --
331+   string(79) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder1"
331- -- Iteration 2 --
332- array(1) {
333-   [0]=>
334-   string(%d) "%s/glob_variation/wonder1"
333+ -- Iteration 4 --
336+ -- Iteration 5 --
336- -- Iteration 3 --
339+ -- Iteration 6 --
342+   string(79) "C:\php-sdk\php53\vc9\x86\php-src\ext\standard\tests\file/glob_variation/wonder1"
343+ }
344+ -- Iteration 7 --
345+ array(0) {
346+ }
347+ -- Iteration 8 --
348+ bool(false)
349+ -- Iteration 9 --
350+ array(0) {
351+ }
352+ -- Iteration 10 --
353+ array(0) {
355+ -- Iteration 11 --
360+ -- Iteration 12 --
361+ array(0) {
363+ Done
337- array(1) {
338-   [0]=>
339-   string(%d) "%s/glob_variation/wonder1"
340- }
341- -- Iteration 4 --
342- array(0) {
343- }
344- -- Iteration 5 --
345- array(0) {
346- }
347- -- Iteration 6 --
348- array(1) {
349-   [0]=>
350-   string(%d) "%s/glob_variation/wonder1"
351- }
352- -- Iteration 7 --
353- array(0) {
354- }
355- -- Iteration 8 --
356- array(0) {
357- }
358- -- Iteration 9 --
359- array(0) {
360- }
361- -- Iteration 10 --
362- array(0) {
363- }
364- -- Iteration 11 --
365- array(1) {
366-   [0]=>
367-   string(%d) "%s/glob_variation/wonder1"
368- }
369- -- Iteration 12 --
370- array(0) {
371- }
372- Done

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

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

Patches

61667.diff (last revision 2012-04-08 11:14 UTC by ab@php.net)

Pull Requests

History

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

Patch Name: 61667.diff
Revision:   1333883651
URL:        https://bugs.php.net/patch-display.php?bug=61667&patch=61667.diff&revision=1333883651
 [2012-04-08 11:14 UTC] ab@php.net
the test passes on php >=5.4, only the php 5.3 has changed
 [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:06 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:06 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=b9cbb9e744f3fadf7b87e9fe2b8058ad1036962b
Log: Fix bug #61667 ext\standard\tests\file\glob_variation-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=b9cbb9e744f3fadf7b87e9fe2b8058ad1036962b
Log: Fix bug #61667 ext\standard\tests\file\glob_variation-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=b9cbb9e744f3fadf7b87e9fe2b8058ad1036962b
Log: Fix bug #61667 ext\standard\tests\file\glob_variation-win32.phpt fails
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC