ID:               47447
 Comment by:       sife_php at yahoo dot com
 Reported By:      sife_php at yahoo dot com
 Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Win XP SP2
 PHP Version:      5.2CVS-2009-02-19 (CVS)
 New Comment:

yes .


Previous Comments:
------------------------------------------------------------------------

[2009-02-19 10:06:28] paj...@php.net

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

Reply via email to