Bug #18708 [Opn->Dup]: If I specify character set, connection fail

From: Date: Sun, 01 Apr 2012 15:13:02 +0000
Subject: Bug #18708 [Opn->Dup]: If I specify character set, connection fail
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8494@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=18708&edit=1 ID: 18708 Updated by: daniel.oconnor@gmail.com Reported By: wizlong79 at gmail dot com Summary: If I specify character set, connection fail -Status: Open +Status: Duplicate Type: Bug Package: MDB2_Driver_sqlsrv Operating System: Windows 7 Package Version: 1.5.0b3 PHP Version: 5.3.6 Roadmap Versions: New Comment: -Status: Open +Status: Duplicate The infinite-recusion behaviour is #17413 which is fixed. Can you please test the current release and see if this is still a problem independent of that. Previous Comments: ------------------------------------------------------------------------ [2011-08-04 02:36:32] wizlong Added #patch bug:18708;patch:charset-support;revision:1312421792;. ------------------------------------------------------------------------ [2011-08-04 02:09:49] wizlong Description: ------------ If I specified character set in the dsn array, connection was failed and infinite recursion of function call occured. Test script: --------------- $dsn = array( "phptype" => "sqlsrv", "user" => "sa", "password" => "****", "hostspec" => "(local)", "database" => "****", "charset" => "utf-8", ); $db = MDB2::factory($dsn); Expected result: ---------------- .. Actual result: -------------- Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\php\PEAR\MDB2\Driver\sqlsrv.php on line 374 Call Stack: 0.0009 323976 1. {main}() D:\workspace\sc_crawl\application\test.php:0 0.0157 1682584 2. MDB2_Driver_Common->query() D:\workspace\sc_crawl\application\test.php:22 0.0157 1682712 3. MDB2_Driver_Common->getConnection() C:\php\PEAR\MDB2.php:2541 0.0157 1682712 4. MDB2_Driver_sqlsrv->connect() C:\php\PEAR\MDB2.php:1749 0.0157 1682712 5. MDB2_Driver_sqlsrv->_doConnect() C:\php\PEAR\MDB2\Driver\sqlsrv.php:386 0.0829 1684992 6. MDB2_Driver_Common->setCharset() C:\php\PEAR\MDB2\Driver\sqlsrv.php:351 0.0830 1685208 7. MDB2_Driver_Common->raiseError() C:\php\PEAR\MDB2.php:2230 0.0830 1685392 8. MDB2_Driver_sqlsrv->errorInfo() C:\php\PEAR\MDB2.php:1442 ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=18708&edit=1

« previous php.pear.bugs (#8494) next »