php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #133 php3_fopen_url_wrapper() returns unitialized variable fp
Submitted: 1998-03-02 21:10 UTC Modified: 1998-04-18 11:03 UTC
From: jfreeman at wwa dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0b5 OS: WIN32
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: jfreeman at wwa dot com
New email:
PHP Version: OS:

 

 [1998-03-02 21:10 UTC] jfreeman at wwa dot com
The function php3_fopen_url_wrapper()in fopen-wrapper.c does not initialize the fp variable when compiling for WIN32 although it is returned at line 532 (b6).  The cause is the following code

#if !(WIN32|WINNT)
	if ((fp = fdopen (SOCKETD, "r+")) == NULL) {
		free_url(resource);
		return(NULL);
	}

#endif

Why is this code ifdef'd out for WIN32 and where is fp supposed to get initialized?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-18 11:03 UTC] rasmus
This code has been rewritten a few times since then.  This bug no longer applies.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC