From: michael dot kofler at gmx dot com
Operating system: Windows, Linux
PHP version: 5.3CVS-2008-07-09 (snap)
PHP Bug Type: MySQLi related
Bug description: mysql / mysqli can't connect
Description:
------------
neither mysql nor mysqli work at all
the problem is caused by mysqlnd (if I compile without mysqlnd, it works)
testing environment:
1) Linux with MySQL 5.1.25 and PHP 5.3 snapshot compiled with
--with-mysql=mysqlnd --with-mysqli=mysqlnd
2) Windows Vista with MySQL 5.1.25 and PHP 5.3 snapshot
in both cases, phpinfo() shows mysql, mysqli and mysqlnd information;
mysql and mysqli use mysqlnd
Reproduce code:
---------------
$mysqli = new mysqli("localhost", "root", "***", "mydatabase");
Expected result:
----------------
a valid mysqli object (code works in Windows with PHP 5.2.6 and in Linux
when PHP is compiled without mysqlnd)
Actual result:
--------------
Windows: blank page, no error at all
Linux:
Warning: mysqli::mysqli() [mysqli.mysqli]: [2002] No such file or
directory ...
--
Edit bug report at http://bugs.php.net/?id=45468&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45468&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45468&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45468&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45468&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45468&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45468&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45468&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45468&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45468&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45468&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45468&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45468&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45468&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45468&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45468&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45468&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45468&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45468&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45468&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45468&r=mysqlcfg