From dfe23e34d9647e82e292d8fe9fca93c11ed13d07 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 19 Sep 2004 11:53:30 +0000 Subject: [PATCH] Add new test --- ext/reflection/tests/bug30146.phpt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ext/reflection/tests/bug30146.phpt diff --git a/ext/reflection/tests/bug30146.phpt b/ext/reflection/tests/bug30146.phpt new file mode 100755 index 0000000000..4f48985dcc --- /dev/null +++ b/ext/reflection/tests/bug30146.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #30146 (ReflectionProperty->getValue() requires instance for static property) +--FILE-- +getValue(null)); + +$r->setValue(NULL, 2); +var_dump($r->getValue()); + +$r->setValue(3); +var_dump($r->getValue()); +?> +===DONE=== +--EXPECT-- +int(1) +int(2) +int(3) +===DONE=== \ No newline at end of file -- 2.50.1