From:             tianlianna at yahoo dot com dot sg
Operating system: Mac OS X 10.4.7
PHP version:      5.1.4
PHP Bug Type:     MySQL related
Bug description:  page doesn't load with mysql connect

Description:
------------
PHP and MySQL both works fine individually. but when i try to use mysql
connect in php and save the code, the page doesn't load. it shows that
it's trying to connect to localhost but it doesn't load eventually. the
explorer just shows done with nothing being loaded. if i have a previous
page on the explorer it will still be there and refresh will refresh that
page. there are no error messages. someone please help me. 

Reproduce code:
---------------
<?php 
        $dbhost = 'localhost';
        $dbuser = 'user';
        $dbpass = 'password';
        
        $conn = mysql_connect($dbhost, $dbuser, $dbpass)
if($conn)
{        echo $conn;}else{
        die('Error connecting to mysql');}
        
        $dbname = 'test';
        mysql_select_db($dbname);
?>

Expected result:
----------------
either '1' or 'error connecting to mysql'

Actual result:
--------------
the page loads for a while but eventually doesn't load the page and shows
a blank page but the status bar of the explorer indicates that the page is
loaded or "done"

-- 
Edit bug report at http://bugs.php.net/?id=38230&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38230&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38230&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38230&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38230&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38230&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38230&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38230&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38230&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38230&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38230&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38230&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38230&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38230&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38230&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38230&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38230&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38230&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38230&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38230&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38230&r=mysqlcfg

Reply via email to