ID: 27058 Updated by: [EMAIL PROTECTED] 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
