1--TEST-- 2PDO_Firebird: ingnore parameter marks in comments 3--EXTENSIONS-- 4pdo_firebird 5--SKIPIF-- 6<?php require('skipif.inc'); 7?> 8--ENV-- 9LSAN_OPTIONS=detect_leaks=0 10--FILE-- 11<?php 12 require("testdb.inc"); 13 14 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); 15 16 $sql = ' 17select 1 as n 18-- :f 19from rdb$database 20where 1=:d and 2=:e 21'; 22 $query = $dbh->prepare($sql); 23 $query->execute(['d' => 1, 'e' => 2]); 24 $row = $query->fetch(\PDO::FETCH_OBJ); 25 var_dump($row->N); 26 unset($query); 27 28 $sql = ' 29select 1 as n 30from rdb$database 31where 1=:d /* and :f = 5 */ and 2=:e 32'; 33 $query = $dbh->prepare($sql); 34 $query->execute(['d' => 1, 'e' => 2]); 35 $row = $query->fetch(\PDO::FETCH_OBJ); 36 var_dump($row->N); 37 unset($query); 38 39 unset($dbh); 40 echo "done\n"; 41 42?> 43--EXPECT-- 44int(1) 45int(1) 46done 47