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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 - 25 = ?
Subscribe to this entry?

 
 [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: Wed Sep 23 23:01:23 2020 UTC