php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1131 strcasecmp not binary safe - unlike what code says
Submitted: 1999-02-09 04:17 UTC Modified: 1999-02-09 08:35 UTC
From: ars at ziplink dot net Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS (09/02/1999) OS:
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:
37 - 14 = ?
Subscribe to this entry?

 
 [1999-02-09 04:17 UTC] ars at ziplink dot net
The souce says php3_strcasecmp is binary safe, only it's not.

This does not seem to be a function that is ever called by user written php3 code, so it might not have any user impact.

The non case sensitive version uses binary safe php3_binary_strcmp, but case insensitive version just uses the strcasecmp function. (It might just be an error in the comments which say it's binary safe when it's not.)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-09 08:35 UTC] sas
Fixed in current CVS. This will be made widely available in PHP 3.0.7. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 21:01:30 2024 UTC