php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15633 Internal Server Error with @mysql_connect
Submitted: 2002-02-19 16:54 UTC Modified: 2002-02-20 09:06 UTC
From: sebastien at tardif dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.1 OS: Windows 2000
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: sebastien at tardif dot com
New email:
PHP Version: OS:

 

 [2002-02-19 16:54 UTC] sebastien at tardif dot com
I have a script were I must disable error-reporting by the mysql_connect function, because I will use header("Status: 401 bla blabla");

When I disable error reporting (either with @mysql_connect or by modifying error_reporting php.ini), I get the "Internal Server Error 500" page.

If I don't disable it, I cannot change the header because the function outputs information.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-20 06:18 UTC] sander@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".



 [2002-02-20 09:06 UTC] sebastien at tardif dot com
Sorry,

My problem was in fact due not to the call with suppressed error output (@mysql_Connect), but to the header("HTTP/1.1 401 bla bla");

I changed it to header("Status: 401 bla bla") and my problem was resolved.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 12 21:00:01 2025 UTC