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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 30 22:01:28 2024 UTC