php.net |  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
Votes:5
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ian at ianhobson dot co dot uk
New email:
PHP Version: OS:

 

 [2009-03-01 21:55 UTC] ian at ianhobson dot co dot uk
Description:
------------
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:
--------------
D:\Websites\ppg\testsop\tests>phpx
The current time is: 21:50:50.39
Enter the new time:
HiThe current time is: 21:50:55.44
Enter the new time:

D:\Websites\ppg\testsop\tests>

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-02 09:26 UTC] johannes@php.net
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 (libmySQL.dll.save 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 

libmySQL.dll.save 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] kalle@php.net
-Status: Open +Status: Feedback
 [2010-08-19 20:56 UTC] kalle@php.net
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 Apr 25 21:01:36 2024 UTC