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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 11:01:29 2025 UTC