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
 [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)

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 09 04:01:30 2024 UTC