php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55546 Bad Test for strtolower/strtoupper
Submitted: 2011-08-31 06:40 UTC Modified: 2011-09-26 23:54 UTC
From: lonnyk at gmail dot com Assigned: stas (profile)
Status: Closed Package: Strings related
PHP Version: 5.4SVN-2011-08-31 (SVN) OS: OSX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lonnyk at gmail dot com
New email:
PHP Version: OS:

 

 [2011-08-31 06:40 UTC] lonnyk at gmail dot com
Description:
------------
On Mac OSX both of these fail:

Test strtolower() function [ext/standard/tests/strings/strtolower.phpt]
Test strtoupper() function [ext/standard/tests/strings/strtoupper1.phpt]

In both we test ASCII characters 0-255 and we fail somewhere after 127. We should 
not test ASCII > 127 because it is undocumented and always has a different 
implementation.


Patches

strtolower.phpt.diff (last revision 2011-08-31 06:45 UTC by lonnyk at gmail dot com)
strtoupper1.phpt.diff (last revision 2011-08-31 06:45 UTC by lonnyk at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-26 23:54 UTC] stas@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
 [2011-09-26 23:54 UTC] stas@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.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Feb 23 17:01:28 2020 UTC