From:             sife_php at yahoo dot com
Operating system: Win XP SP2
PHP version:      5.2CVS-2009-02-19 (CVS)
PHP Bug Type:     MySQL related
Bug description:  http crash

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 bug report at http://bugs.php.net/?id=47447&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47447&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47447&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47447&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47447&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47447&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47447&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47447&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47447&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47447&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47447&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47447&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47447&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47447&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47447&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47447&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47447&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47447&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47447&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47447&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47447&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47447&r=mysqlcfg

Reply via email to