#23888 [NEW]: mysql_pconnect()'s 4th param should be checked better

From: Date: Fri, 30 May 2003 08:45:15 +0000
Subject: #23888 [NEW]: mysql_pconnect()'s 4th param should be checked better
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40690@lists.php.net to get a copy of this message
From: prac1 at dynawest dot cz Operating system: all PHP version: 4.3.1 PHP Bug Type: MySQL related Bug description: mysql_pconnect()'s 4th param should be checked better In a mistake, I sent a string as a fourth parameter of mysql_pconnect(), which is meant to set flags. I don't know what exactly that string ("mudrweb") set, but the result was myqls's error: Incorrect database name '2XE/YU' I think the parameter should be checked whether it is a number type or an appropriate convertable string, that means, convertable to a meaningful flags values. Thanks, bye -- Edit bug report at http://bugs.php.net/?id=23888&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23888&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23888&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23888&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23888&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23888&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23888&r=support Expected behavior: http://bugs.php.net/fix.php?id=23888&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23888&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23888&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23888&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23888&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23888&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23888&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23888&r=gnused

« previous php.bugs (#40690) next »