#27058 [Opn->Fbk]: Segfault when connecting to the database without password
| From: | sniper@php.net | Date: | Tue, 27 Jan 2004 15:07:28 +0000 |
| Subject: | #27058 [Opn->Fbk]: Segfault when connecting to the database without password | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53961@lists.php.net to get a copy of this message | ||
ID: 27058
Updated by: sniper@php.net
Reported By: php at dima dot spb dot ru
-Status: Open
+Status: Feedback
Bug Type: Sybase (dblib) related
Operating System: RedHat 9
PHP Version: 4.3.4
New Comment:
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".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-01-27 10:01:50] php at dima dot spb dot ru
Description:
------------
// $Id: sybase.php,v 1.32 2004/01/22 15:13:01 danielc Exp $
if ($interface && $user && $pw) {
$conn = @$connect_function($interface, $user, $pw);
} elseif ($interface && $user) {
$conn = @$connect_function($interface, $user);
} else {
$conn = FALSE;
}
The second branch is executed when no password is given. Unfortunately,
it causes segfault on my system. I have no idea why but I think it is
because there is no sybase_connect function with two arguments.
If I change
$conn = @$connect_function($interface, $user);
to
$conn = @$connect_function($interface, $user, false);
everything works fine.
I'm using FreeTDS 0.62.1
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
zend_get_parameters_ex (param_count=1)
at /root/eagle/php-4.3.4/Zend/zend_API.c:133
133 /root/eagle/php-4.3.4/Zend/zend_API.c: No such file or
directory.
in /root/eagle/php-4.3.4/Zend/zend_API.c
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27058&edit=1