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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 18:01:30 2024 UTC