#31096 [NEW]: mysqli_stmt_bind_param drawbacks

From: Date: Wed, 15 Dec 2004 00:17:34 +0000
Subject: #31096 [NEW]: mysqli_stmt_bind_param drawbacks
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70244@lists.php.net to get a copy of this message
From: glideraerobatics at hotmail dot com Operating system: PHP version: 5.0.2 PHP Bug Type: Feature/Change Request Bug description: mysqli_stmt_bind_param drawbacks Description: ------------ The function mysqli_stmt_bind_param() is a huge leap forward for PHP but still has a terrible drawback: I use DAO (not the Micro$oft kind) classes that create their own SQL statements. These statements have varying numbers of fields and bind markers (the ? marks). If one could pass an array of values to mysqli_stmt_bind_param(), then this problem could be solved, but it's not possible (yet). Currently mysqli_stmt_bind_param() expects the programmer to just type in a list of variable names as parameters. To make things worse, you sometimes can't even use function calls as parameters because mysqli_stmt_bind_param() complains about non-referenced variables (or something). Hopefully somebody bring PHP up to the level of other programming languages in this area. -- Edit bug report at http://bugs.php.net/?id=31096&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31096&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31096&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31096&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31096&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31096&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31096&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31096&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31096&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31096&r=support Expected behavior: http://bugs.php.net/fix.php?id=31096&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31096&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31096&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31096&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31096&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31096&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31096&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31096&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31096&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31096&r=mysqlcfg

« previous php.bugs (#70244) next »