|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-19 10:06 UTC] pajoye@php.net
[2009-02-22 06:42 UTC] sife_php at yahoo dot com
[2009-02-22 09:48 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 19:00:01 2025 UTC |
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)