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


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Thu Oct 05 03:01:24 2023 UTC