php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3882 fsockopen() returns wrong case
Submitted: 2000-03-20 11:28 UTC Modified: 2000-03-29 17:20 UTC
From: flec at flec dot co dot uk Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0b4pl1 OS: FreeBSD (3.0 & 3.2)-RELEASE
Private report: No CVE-ID: None
 [2000-03-20 11:28 UTC] flec at flec dot co dot uk
The php version here is wrong, I am running php4.0b3 and 4.0b4pl1 but don't have the option to select either.

Ever since b4pl1, fsockopen() seems to be returning its data in lowercase. This is proven by running the same code on a b3 and b4 server, detailing the output from the socket, using fgets().

A 'normal' fopen on a file returns the correct output on both versions, but with fsockopen() the output varies only in upper/lower case.

Is this a bug or is it meant to be, for whatever reason?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 17:20 UTC] flec at flec dot co dot uk
This wasn't fsockopen() in the end. My mistake here.

The culprit was however, stristr, which I didn't spot (sorry for the duff report). This has been fixed with string.c v1.103/bug report 3890.

Changing state to closed as such.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 06:01:34 2024 UTC