php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27053 Sybase does not allow empty password
Submitted: 2004-01-26 18:35 UTC Modified: 2004-01-26 18:54 UTC
From: php at dima dot spb dot ru Assigned:
Status: Not a bug Package: Sybase (dblib) related
PHP Version: 4.3.4 OS: RedHat 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 9 = ?
Subscribe to this entry?

 
 [2004-01-26 18:35 UTC] php at dima dot spb dot ru
Description:
------------
// $Id: sybase.php,v 1.13 2003/09/07 10:55:51 cox Exp $

line 99

        if ($interface && $user && $pw) {
            $conn = $connect_function($interface, $user, $pw);
        } else {
            $conn = FALSE;
        }

the check of $pw in the 'if' expression effectively disables using account with empty password. These are valid for MSSQL

Expected result:
----------------
it should connects normally

Actual result:
--------------
reports 'connection failed'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-26 18:54 UTC] derick@php.net
This is a pear related bug, please file it at http://bugs.pear.php.net/bugs/report.php?package=DB as it has nothing to do with the PHP source itself.

regards,
Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC