From: Marcus Boerger Date: Thu, 24 Mar 2005 12:31:37 +0000 (+0000) Subject: - Add new test X-Git-Tag: php-5.0.1b1~692 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2906d6570cd816f2edfd949e280c162f2f1e033f;p=php - Add new test --- diff --git a/ext/pdo/tests/pdo_024.inc b/ext/pdo/tests/pdo_024.inc new file mode 100755 index 0000000000..60bb30a77c --- /dev/null +++ b/ext/pdo/tests/pdo_024.inc @@ -0,0 +1,21 @@ +query($SQL['create']); +$stmt = $DB->prepare($SQL['insert']); +$name = NULL; +$before_bind = $name; +$stmt->bindParam(':name', $name); +if ($name !== $before_bind) { + echo "bind: fail\n"; +} else { + echo "bind: success\n"; +} +var_dump($stmt->execute()); +var_dump($DB->query($SQL['select'])->fetchSingle()); +?> diff --git a/ext/pdo_mysql/tests/pdo_024.phpt b/ext/pdo_mysql/tests/pdo_024.phpt new file mode 100755 index 0000000000..bf14896fcc --- /dev/null +++ b/ext/pdo_mysql/tests/pdo_024.phpt @@ -0,0 +1,21 @@ +--TEST-- +PDO_MySQL: Bind does not convert NULL +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECTF-- +bind: success +bool(true) +NULL +===DONE=== diff --git a/ext/pdo_pgsql/tests/pdo_024.phpt b/ext/pdo_pgsql/tests/pdo_024.phpt new file mode 100755 index 0000000000..634e0bca4f --- /dev/null +++ b/ext/pdo_pgsql/tests/pdo_024.phpt @@ -0,0 +1,21 @@ +--TEST-- +PDO_PGSQL: Bind does not convert NULL +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECTF-- +bind: success +bool(true) +NULL +===DONE=== diff --git a/ext/pdo_sqlite/tests/pdo_024.phpt b/ext/pdo_sqlite/tests/pdo_024.phpt new file mode 100755 index 0000000000..15530419d7 --- /dev/null +++ b/ext/pdo_sqlite/tests/pdo_024.phpt @@ -0,0 +1,21 @@ +--TEST-- +PDO_SQLite: Bind does not convert NULL +--SKIPIF-- + +--FILE-- + +===DONE=== + +--EXPECTF-- +bind: success +bool(true) +NULL +===DONE===