From: d at tpyo dot net Operating system: Linux 2.6.22 PHP version: 5.2.5 PHP Bug Type: PDO related Bug description: Output parameter not set if stored procedure returns rows
Description: ------------ It seems that if a stored procedure returns rows from a SELECT the output parameters are lost. Not sure if this is the intended behaviour, but since this works fine from the MySQL CLI I'm inclined to believe it's not. Reproduce code: --------------- Stored procedures and PDO code for reproducing the problem: http://undesigned.org.za/files/pdo-issue.phps Expected result: ---------------- PDO_FOUND_ROWS_TEST_1(@test1): string(4) "Set!" PDO_FOUND_ROWS_TEST_2(@test2): string(4) "Set!" Actual result: -------------- PDO_FOUND_ROWS_TEST_1(@test1): string(4) "Set!" PDO_FOUND_ROWS_TEST_2(@test2): FAILED -- Edit bug report at http://bugs.php.net/?id=44289&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44289&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44289&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44289&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44289&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44289&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44289&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44289&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44289&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44289&r=support Expected behavior: http://bugs.php.net/fix.php?id=44289&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44289&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44289&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44289&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44289&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44289&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44289&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44289&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44289&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44289&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44289&r=mysqlcfg
