|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-28 17:16 UTC] izh1979 at gmail dot com
[2008-02-28 17:24 UTC] izh1979 at gmail dot com
[2008-03-03 13:12 UTC] jani@php.net
[2008-03-03 14:40 UTC] izh1979 at gmail dot com
[2008-03-25 19:26 UTC] andrey@php.net
[2008-03-25 19:58 UTC] izh1979 at gmail dot com
[2008-04-25 20:20 UTC] jani@php.net
[2008-07-23 12:03 UTC] andrey@php.net
[2008-07-31 01:00 UTC] php-bugs at lists dot php dot net
[2010-08-18 12:33 UTC] andrey@php.net
-Status: No Feedback
+Status: Bogus
-Assigned To: andrey
+Assigned To: mysql
[2010-08-18 12:33 UTC] andrey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Description: ------------ PHP 5.2.5, MySQL 5.0.51a, for redhat-linux-gnu (i686) using EditLine wrapper. Running test script with correct user password, you will see: Connected successfully. [Thu Feb 28 18:04:59 2008] Script: '/home/bsg/www/t.php' --------------------------------------- /home/user/php/ext/mysql/php_mysql.c(316) : Block 0x08f54820 status: Invalid pointer: ((size=0x00000251) != (next.prev=0x00000000)) --------------------------------------- Disconnected successfully. [Thu Feb 28 18:04:59 2008] Script: '/home/bsg/www/t.php' --------------------------------------- /home/user/php/Zend/zend_opcode.c(238) : Block 0x08f554e8 status: Invalid pointer: ((prev=0x00000a78) != (prev.size=0x00000000)) --------------------------------------- zend_mm_heap corrupted Segmentation fault First problem occured in php_mysql.c(316) in function _close_mysql_link on line "efree(link);". Second in zend_opcode.c in function destroy_op_array on line "efree(op_array->vars[i].name);". If you change hostname or password to wrong, you will see another error: Warning: mysql_connect(): Unknown MySQL server host 'localhost2' (1) in /home/user/www/t.php on line 2 [Thu Feb 28 18:09:24 2008] Script: '/home/bsg/www/t.php' --------------------------------------- /home/user/php/ext/mysql/php_mysql.c(831) : Block 0x097db818 status: Invalid pointer: ((size=0x00000251) != (next.prev=0x00000000)) --------------------------------------- Could not connect: Unknown MySQL server host 'localhost2' (1) There is no segmentation fault now. But the problem is. In file php_mysql.c(831) the line is "efree(mysql);" in function php_mysql_do_connect. Reproduce code: --------------- % <?php $link = mysql_connect ('localhost', 'login', 'password'); if (!$link) die ("Could not connect: ". mysql_error ()); echo "Connected successfully.\n"; mysql_close ($link); echo "Disconnected successfully.\n"; ?>