php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41967 file_get_contents or fopen produce my_thread_global_end error
Submitted: 2007-07-11 17:51 UTC Modified: 2007-07-11 18:42 UTC
From: tech at millennium dot ab dot ca Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.3 OS: Windows 2000 SBS
Private report: No CVE-ID: None
 [2007-07-11 17:51 UTC] tech at millennium dot ab dot ca
Description:
------------
After upgrading to PHP 5.2.3 I began seeing "Error in my_thread_global_end(): 1 threads didn't exit" whenever using the fopen or file_get_contents with a URL.  I get it regardless of SSL or not.  This has nothing to do with the MySQL thing, I've tryed those DLL's and it's not that.  MySQL is working fine without any errors, this only happens when using the functions mentioned above.

Reproduce code:
---------------
<?php $Contents = @file_get_contents("http://www.google.ca");?>

Expected result:
----------------
responce from server stored in $Contents

Actual result:
--------------
responce from server stored in $Contents + "Error in my_thread_global_end(): 1 threads didn't exit"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-11 18:07 UTC] tech at millennium dot ab dot ca
Forgot to mention, I use this function for an XML call, not specifically google, but that example will produce the same error as I get.  This only started happening after the update to 5.2.3, I never had this problem before and I'm using all the same code as I have been for a number of years.
 [2007-07-11 18:38 UTC] sniper@php.net
Already fixed in CVS. (why didn't you search before reporting?!)
 [2007-07-11 18:42 UTC] tech at millennium dot ab dot ca
I did search.  I just did another search and this is the only submission regarding this issue?  Can you please supply a link to the fix you are talking about?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 11:01:33 2025 UTC