-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #80521: Parameters with underscores no longer recognized
We have to use the proper value for the bitmask.
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--TEST-- | ||
Bug #80521 (Parameters with underscores no longer recognized) | ||
--SKIPIF-- | ||
<?php require('skipif.inc'); ?> | ||
--FILE-- | ||
<?php | ||
require 'testdb.inc'; | ||
|
||
$dbh->exec("CREATE TABLE bug80521 (foo INTEGER)"); | ||
var_dump($dbh->prepare("SELECT foo FROM bug80521 WHERE foo = :foo_bar")); | ||
?> | ||
--EXPECTF-- | ||
object(PDOStatement)#%d (1) { | ||
["queryString"]=> | ||
string(45) "SELECT foo FROM bug80521 WHERE foo = :foo_bar" | ||
} | ||
--CLEAN-- | ||
<?php | ||
require 'testdb.inc'; | ||
$dbh->exec("DROP TABLE bug80521"); | ||
?> |