php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #189 mysql_connect and SAFE_MODE question
Submitted: 1998-03-19 10:50 UTC Modified: 1998-03-21 06:01 UTC
From: DelislMa at CollegeSherbrooke dot qc dot ca Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0b5 OS: Linux 2.0.33
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: DelislMa at CollegeSherbrooke dot qc dot ca
New email:
PHP Version: OS:

 

 [1998-03-19 10:50 UTC] DelislMa at CollegeSherbrooke dot qc dot ca
I would like to know why in SAFE_MODE, I can't use any 
username in mysql_connect? My project would request a
username/password via an authentication dialog box and use it 
to make the connection to the sql server.

I am using PHP3 as an Apache module.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-21 06:01 UTC] zeev
This is not a bug, but a feature.  In SQL safe mode, you
can't open MySQL links with arbitary usernames - only
the username owning the file being parsed (the parent file,
if there are includes).

Just set sql_safe_mode to 0 if that's not what you want.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 09:01:28 2024 UTC