#27058 [NEW]: Segfault when connecting to the database without password

From: Date: Tue, 27 Jan 2004 15:01:50 +0000
Subject: #27058 [NEW]: Segfault when connecting to the database without password
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53959@lists.php.net to get a copy of this message
From: php at dima dot spb dot ru Operating system: RedHat 9 PHP version: 4.3.4 PHP Bug Type: Sybase (dblib) related Bug description: Segfault when connecting to the database without password 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 bug report at http://bugs.php.net/?id=27058&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27058&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27058&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27058&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27058&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27058&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27058&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27058&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27058&r=support Expected behavior: http://bugs.php.net/fix.php?id=27058&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27058&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27058&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27058&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27058&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27058&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27058&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27058&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27058&r=float

« previous php.bugs (#53959) next »