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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 14 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 15:01:30 2024 UTC