Edit report at http://bugs.php.net/bug.php?id=51231&edit=1
ID: 51231 Updated by: and...@php.net Reported by: fel...@php.net Summary: mysqli::connect() crashes -Status: Assigned +Status: Feedback Type: Bug Package: MySQLi related Operating System: Linux PHP Version: 5.3SVN-2010-03-07 (SVN) Assigned To: mysql New Comment: I can't reproduce it anymore. Felipe, do you can? Previous Comments: ------------------------------------------------------------------------ [2010-03-07 23:02:46] fel...@php.net Description: ------------ Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb75376d0 (LWP 14083)] 0xb763b38b in strlen () from /lib/i686/cmov/libc.so.6 (gdb) bt #0 0xb763b38b in strlen () from /lib/i686/cmov/libc.so.6 #1 0x081f0e69 in php_mysqli_close (mysql=0x9e3a7c4, close_type=0, tsrm_ls=0x9ccd070) at /home/felipe/dev/php5/ext/mysqli/mysqli_api.c:562 #2 0x081ea033 in mysqli_link_free_storage (object=0x9e394f4, tsrm_ls=0x9ccd070) at /home/felipe/dev/php5/ext/mysqli/mysqli.c:225 Test script: --------------- $x = new mysqli; $x->connect(); Expected result: ---------------- No crash. Actual result: -------------- Warning: mysqli::connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in Command line code on line 1 Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51231&edit=1