|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47539 MySQL module slow close
Submitted: 2009-03-01 21:55 UTC Modified: 2013-02-18 00:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:4 (80.0%)
From: ian at ianhobson dot co dot uk Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5.2.9 OS: win32 only -Win2K
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-03-01 21:55 UTC] ian at ianhobson dot co dot uk
If php_mysql.dll or php_mysqli.dll are enabled, the CLI takes 5 seconds to close. 

Reproduce code:
@echo off
time <Y
D:\wamp\bin\php\php5.2.8\php -r "Echo 'Hi';"
time <Y

Where Y is a file containing just a newline. 

Expected result:
The times to be within a fraction of a second. 

How long should an "echo" take? 

Actual result:
The current time is: 21:50:50.39
Enter the new time:
HiThe current time is: 21:50:55.44
Enter the new time:


The times differ by over 5 seconds. Windows, AMD 3500+, with 3GB RAM and fast hard disk. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-02 09:26 UTC]
Which libmysql.dll is being used? The one which is part of the PHP distribution?
 [2009-03-02 10:46 UTC] ian at ianhobson dot co dot uk
I am fairly sure it is. I recall renaming the MySQL version ( is still in the MySQL directory), and copy/pasting the php version in. 

All three copies of that file on my machine... 

a) Do not have any version information in the properties box.
b) Are sized exactly 2076672 bytes. 
c) Are dated when I installed php and mySQl (except one which is dated the date I unpacked php5.2.9)

The pathnames are
  D:\wamp\bin\php\php5.2.8             php 5.2.8
  D:\wamp\bin\mysql\mysql5.1.30\bin    MySQl 5.1.30 
  D:\test                              php 5.2.9 is sized at 2,260,992 bytes
 [2009-03-03 11:21 UTC] ian at ianhobson dot co dot uk
It looks as if this bug has been around since 5.2.2

See bugs 41968 and 41350.
 [2010-08-19 20:56 UTC]
-Status: Open +Status: Feedback
 [2010-08-19 20:56 UTC]
Does this happen with 5.3.x? And have you tried the VC9 versions from CLI? To see if there is any difference from the VC6 binaries you currently are using.
 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 21:01:27 2024 UTC