php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47338 connect mysql when using apache sucks..
Submitted: 2009-02-08 14:25 UTC Modified: 2009-02-17 15:48 UTC
From: weimade at yahoo dot com dot cn Assigned: pajoye (profile)
Status: Not a bug Package: Apache2 related
PHP Version: 5.2CVS-2009-02-08 (CVS) OS: window xp sp3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: weimade at yahoo dot com dot cn
New email:
PHP Version: OS:

 

 [2009-02-08 14:25 UTC] weimade at yahoo dot com dot cn
Description:
------------
apache_2.2.11-win32-x86-no_ssl.msi

php-5.2.8-win32-installer.msi

when i use them to build the lamp..
s.php is
is run ok by php s.php
but it broken down when i request http://site/s.php




Reproduce code:
---------------
<?php

$link = mysql_connect('localhost', 'root', 'chenwei');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);

?> 

Expected result:
----------------
nothing;just a blank page..

Actual result:
--------------
Connected successfully

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-08 14:27 UTC] weimade at yahoo dot com dot cn
iam sorry,i made a mistake..
Expected result:
----------------
nothing;just a blank page..

Actual result:
--------------
Connected successfully

change to 

Expected result:
----------------
Connected successfully

Actual result:
--------------
nothing;just a blank page..
 [2009-02-08 14:33 UTC] pajoye@php.net
I suppose you have installed mysql 5.1 as well?
 [2009-02-09 11:41 UTC] weimade at yahoo dot com dot cn
i fixed it...
it was all my fault.the database file encounter an error..
so when do an query..it is broken down..

my mistake so.so..sorry
 [2009-02-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-17 15:48 UTC] johannes@php.net
User error -> closing bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC