From db86597e883b214adb7485ed091039a3132ff0b1 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 20 Jul 2003 20:27:43 +0000 Subject: Add test for bug #24499 --- ext/pgsql/tests/80_bug24499.phpt | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 ext/pgsql/tests/80_bug24499.phpt diff --git a/ext/pgsql/tests/80_bug24499.phpt b/ext/pgsql/tests/80_bug24499.phpt new file mode 100755 index 0000000000..ddb3c58a21 --- /dev/null +++ b/ext/pgsql/tests/80_bug24499.phpt @@ -0,0 +1,66 @@ +--TEST-- +Bug #24499 Notice: Undefined property: stdClass:: +--SKIPIF-- + +--FILE-- +id; + } +} + +$id = new Id(); +var_dump($id->getId()); + +pg_close($dbh); + +echo "Done\n"; + +?> +--EXPECTF-- +Array +( + [0] => 1 + [id] => 1 +) +Array +( + [0] => 2 + [id] => 2 +) +object(stdClass)#%d (1) { + ["id"]=> + string(1) "3" +} +string(1) "3" +Done -- cgit v1.2.1