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
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: ars at ziplink dot net
New email:
PHP Version: OS:

 

 [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: Wed Apr 24 18:01:28 2024 UTC