php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61814 ext\standard\tests\strings\strspn_variation6.phpt fails
Submitted: 2012-04-22 12:06 UTC Modified: 2012-05-02 09:18 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: *General Issues
PHP Version: 5.4Git-2012-04-22 (snap) 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: ab@php.net
New email:
PHP Version: OS:

 

 [2012-04-22 12:06 UTC] ab@php.net
Description:
------------
Test diff:

047+ int(4)
047- int(1)
059+ int(4)
059- int(1)
071+ int(4)
071- int(1)
083+ int(4)
083- int(1)

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

Actual result:
--------------
test diff

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-23 09:34 UTC] ab@php.net
A simple reproduce case for this,

Linux:
php -r '$s = "hello123world456"; $m = "fl\t\eh "; var_dump(strspn($s,$m));'
int(1)

Windows:
php.exe -r "$s = \"hello123world456\"; $m = \"fl\t\eh \"; var_dump(strspn($s,$m));"
int(4)

It looks somehow related to the bug 61813.
 [2012-04-23 15:39 UTC] ab@php.net
see bug 61827 for further infos
 [2012-05-02 09:18 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-05-02 09:18 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 18:01:32 2025 UTC