1--TEST--
2Bug #80521 (Parameters with underscores no longer recognized)
3--EXTENSIONS--
4pdo_firebird
5--SKIPIF--
6<?php require('skipif.inc'); ?>
7--ENV--
8LSAN_OPTIONS=detect_leaks=0
9--FILE--
10<?php
11require 'testdb.inc';
12
13$dbh->exec("CREATE TABLE bug80521 (foo INTEGER)");
14var_dump($dbh->prepare("SELECT foo FROM bug80521 WHERE foo = :foo_bar"));
15?>
16--EXPECTF--
17object(PDOStatement)#%d (1) {
18  ["queryString"]=>
19  string(45) "SELECT foo FROM bug80521 WHERE foo = :foo_bar"
20}
21--CLEAN--
22<?php
23require 'testdb.inc';
24$dbh->exec("DROP TABLE bug80521");
25?>
26