Edit report at http://bugs.php.net/bug.php?id=50829&edit=1
ID: 50829
Comment by: joelataylor at gmail dot com
Reported by: giovanni at giacobbi dot net
Summary: php.ini directive pdo_mysql.default_socket is ignored
Status: Closed
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: 5.3.2RC1
New Comment:
I'm having this exact issue on 5.3.2 - installed via Zend Server. Having
been
hitting my head against a brick wall. I obviously can create a symbolic
link, or
use unix_socket - to point to the correct location - but would prefer
localhost to
work as expected.
Previous Comments:
[2010-04-23 01:57:46] gnoodl at gmail dot com
In which stable version does this fix appear.
I've just upgraded to PHP 5.3.2 and whilst pdo_mysql.default_socket is
returned
correctly via ini_get(), attempting to make a connection results in the
following
exception
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through
socket
'/tmp/mysql.sock'
FYI, my socket file resides at /var/lib/mysql/mysql.sock
[2010-03-24 17:49:55] paul at boxuk dot com
this, or a problem relating to this fix appears to be seg-faulting the
pdo_mysql
module on startup in ZTS mode
bug #51216 is related
commenting out REGISTER_INI_ENTRIES() in ext/pdo_mysql/pdo_mysql.c:68
php
startup prevents the seg-fault
configure line
--
./configure --enable-maintainer-zts --with-mysql --with-mysqli=mysqlnd
--enable-
pdo --with-pdo-mysql
gdb output
--
gdb sapi/cli/php
GNU gdb Fedora (6.8-37.el5)
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) run
Starting program: /php-5.3.2/sapi/cli/php
[Thread debugging using libthread_db enabled]
[New Thread 0xb7f776c0 (LWP 491)]
[New Thread 0xb7d0db90 (LWP 494)]
[Thread 0xb7d0db90 (LWP 494) exited]
Program received signal SIGSEGV, Segmentation fault.
0x08347ff5 in zend_startup_module_ex (module=0x98d2720,
tsrm_ls=0x98b7050)
at /opt/BoxUK/install/php-5.3.2/Zend/zend_API.c:1618
1618EG(current_module) = NULL;
module->name at this point is "pdo_mysql"
[2010-02-03 21:00:21] s...@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=294469
Log: Fixed bug #50829 (php.ini directive pdo_mysql.default_socket is
ignored)
[2010-01-26 13:15:59] il...@php.net
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
[2010-01-26 13:15:57] s...@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=294040
Log: Fixed bug #50829 (php.ini directive pdo_mysql.default_socket is
ignored)
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/bug.php?id=50829
--
Edit this bug report at http://bugs.php.net/bug.php?id=50829&edit=1