|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-24 08:45 UTC] derick@php.net
[2004-08-24 10:22 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 00:00:02 2025 UTC |
Description: ------------ Alright, this is a strange bug, but I'll get to the point. For some odd reason PHP is not letting me pass chained queries in through a method, and from there execute the query successfully. I find that if I use the transactions ('BEGIN;' and 'COMMIT;') no queries will be executed, and if I leave the transactions out, only the first query will be executed. Now I know this bug exists: http://bugs.php.net/bug.php?id=28264 And it's virtually identical, except for the fact that I'm passing data through a method first, then executing it (I don't modify the data, as you'll see below). I have come to the conclusion that this is in fact a bug, as I have ruled out every other possibility. PHP Info: http://www.webtrickscentral.com/stuff/phpinfo.php Reproduce code: --------------- http://www.webtrickscentral.com/stuff/phpBug.phps Expected result: ---------------- The code should insert two rows of data into table 'cool'. Actual result: -------------- It does not do anything- no error messages and it does not insert anything. * - This is for any type of query, also.