From 5faa087a0e0592984495e84019500a3f859d2ef4 Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 29 Nov 2003 02:28:49 +0000 Subject: [PATCH] test for bug #24926 --- tests/lang/bug24926.phpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/lang/bug24926.phpt diff --git a/tests/lang/bug24926.phpt b/tests/lang/bug24926.phpt new file mode 100644 index 0000000000..3d2cc7008b --- /dev/null +++ b/tests/lang/bug24926.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #24926 (lambda function (create_function()) cannot be stored in a class property) +--FILE-- +functions['test'] = $function; + print($this->functions['test']()); // werkt al niet meer + + } +} + +$a = new foo (); + +?> +--EXPECT-- +FOO +FOO -- 2.50.1