ID: 47447 Updated by: [email protected] Reported By: sife_php at yahoo dot com -Status: Feedback +Status: Bogus Bug Type: MySQL related Operating System: Win XP SP2 PHP Version: 5.2CVS-2009-02-19 (CVS) New Comment:
Do not use libmysql 5.1 with PHP. Be sure that the libmysql delivered with PHP is used (c:\php must be first in your path). Check the other reports about this issue for a more detailed explanation. Not a php bug > bogus. Previous Comments: ------------------------------------------------------------------------ [2009-02-22 06:42:18] sife_php at yahoo dot com yes . ------------------------------------------------------------------------ [2009-02-19 10:06:28] [email protected] Do you use mysql 5.1? ------------------------------------------------------------------------ [2009-02-19 09:59:36] sife_php at yahoo dot com Description: ------------ package has been used : mysql-noinstall-5.1.30 httpd-2.2.11x86ssl php-5.2.8 when try to connect to mysql server via php the apache is crash . NOTE : i had use httpd 2.2.8 with php 5.2.8 and mysql 5.0.51b communty with no problem . Reproduce code: --------------- <?php class MySQL { private $hDB; function __construct($host,$user,$pass,$db) { $this->hDB=mysql_connect($host,$user,$pass); if(!$this->hDB && mysql_select_db($db,$this->hDB)) echo "error"; else return $this->hDB; } function __destruct() { mysql_close($this->hDB); } } $test=new MySQL("127.0.1","root","00000","mysql"); ?> Expected result: ---------------- a MSG that is say : don't send (http crash with out stop) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47447&edit=1
