php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45042 Vista & mySQL Extension = slowdown when PHP finalizes
Submitted: 2008-05-19 22:13 UTC Modified: 2008-05-26 20:17 UTC
From: php at schubec dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 5.2.6 OS: Vista (any version)
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: php at schubec dot com
New email:
PHP Version: OS:

 

 [2008-05-19 22:13 UTC] php at schubec dot com
Description:
------------
When you activate the mySQL Extension on Vista, PHP is delayed for about 3-4 seconds after every script execution.
As far as I found out this happens when PHP finalizes (so something like a destructor or so).
Problem can be reproduced.

Even if NO mySQL related code is called!!!


I am using a CLI version of PHP 5.2.6. The problem can also be reproduced when you use SAPI to embed PHP in you own application.

I did not test that with IIS/Apache or any other webserver.

Reproduce code:
---------------
//Any code will do
echo "Hello World";

//This takes about 5 secs to execute on Vista with mySQL Extensions on.

Expected result:
----------------
Either a delay only when something mySQL related is used (eg: mysql_connect) or no noticable delay at all.



Actual result:
--------------
Every script is delayed 5 seconds.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-19 22:44 UTC] jani@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2008-05-20 09:51 UTC] php at schubec dot com
Sorry, but what info are you missing?
I read the "how to post bugs" page, but I do not see what I am missing.

Thank you,
Bernhard
 [2008-05-20 11:22 UTC] mattwil@php.net
I assume this is from the "Error in my_thread_global_end(): 1 threads didn't exit" thing: see Bug #41350, or Google... I had noticed it in CLI (but not Apache module), but hadn't looked into it since I thought maybe I had messed something up with different PHP builds, etc., but it definitely looks like it's still a widespread issue?
 [2008-05-20 12:21 UTC] php at schubec dot com
Hello!

Okay, sorry. It seems to be the same bug. You are right.
But I realy searched for the bug before posting. I looked at "Vista" and "MySQL" related bugs and didn't find that.

Also, I do not get an error message - I just get this delay.

Anyhow. I will close the bug, since bug Bug #41350 is still open.

Sorry for wasting your time,
Bernhard
 [2008-05-26 20:17 UTC] jani@php.net
I reopened bug #41350 and updated it's version. Post further comments there.
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e5bf2a0ed0cd4df57e78d90fac1c5c110724770c
Log: Weird, but it should fix #45042
 [2020-02-07 06:10 UTC] phpdocbot@php.net
-Status: Not a bug +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 05:01:37 2025 UTC