ID:               46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:      peaceable_whale at hotmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         MySQLi related
 Operating System: win32 only
 PHP Version:      5.3.0alpha3
 Assigned To:      mysql
 New Comment:

No. The error occurs once the script connects to a database.

Test case:

<?php
$mysqli=new mysqli(HOST,USERNAME,PASSWORD);
$connection_closed=$mysqli->close();
echo $connection_closed?"Database connection has been closed
successfully":"An error occurred when closing database connection";
?>


Previous Comments:
------------------------------------------------------------------------

[2009-02-02 13:43:30] johan...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Does a simple mysql_connect() or mysqli_connect() work? Do simple
queries work? Do other applications than phpMyAdmin work?

------------------------------------------------------------------------

[2009-02-02 13:35:42] peaceable_whale at hotmail dot com

Thanks for changing it to Assigned :)

------------------------------------------------------------------------

[2009-02-02 13:33:57] paj...@php.net

oh my bad, right.

So not related (it must be the 1st report in weeks not related to 5.1
=)

> assigned to mysql

------------------------------------------------------------------------

[2009-02-02 13:32:22] peaceable_whale at hotmail dot com

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version      mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links         0
Inactive Persistent Links       0
Active Links    0 

mysqlnd

mysqlnd enabled
Version         mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size     2048
Read buffer size        32768
Collecting statistics   Yes
Collecting memory statistics    No

------------------------------------------------------------------------

[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/46767

-- 
Edit this bug report at http://bugs.php.net/?id=46767&edit=1

Reply via email to