ID:          50384
 Comment by:  marques at displague dot com
 Reported By: marques at displague dot com
 Status:      Open
 Bug Type:    PDO related
 PHP Version: 5.3.1
 New Comment:

I just read this:
http://www.php.net/manual/en/migration53.incompatible.php

The new mysqlnd library does not read mysql configuration files 
(my.cnf/my.ini), as the older libmysql library does. If your code 
relies on settings in the configuration file, you can load it 
explicitly with the mysqli_options() function.

Ugh.  There is no mysqli_options equivalent for PDO_mysql.  Should 
check that the class constant exists, and follow two different paths 
based on that?


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

[2009-12-04 13:00:47] marques at displague dot com

Description:
------------
PDO::MYSQL_ATTR_READ_DEFAULT_FILE and  
PDO::MYSQL_ATTR_READ_DEFAULT_GROUP are not defined in the mysqlnd 
version of the pdo_mysql module.

Once defined, the functionality will need to be tested to see if it 
actually reads a mysql config file and uses the selected [group] for 
options.

Reproduce code:
---------------
echo PDO::MYSQL_ATTR_READ_DEFAULT_FILE . " " .
PDO::MYSQL_ATTR_READ_DEFAULT_GROUP;

Expected result:
----------------
1003 1004

Actual result:
--------------
PHP Fatal error:  Undefined class constant 
'MYSQL_ATTR_READ_DEFAULT_FILE' in Command line code on line 1



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


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

Reply via email to