From 212cfb95d1c7eb7202e1386294808eceef386b78 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 13 Aug 2012 11:03:35 +0800 Subject: [PATCH] more test script for #62328 --- ext/spl/tests/bug62328.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ext/spl/tests/bug62328.phpt diff --git a/ext/spl/tests/bug62328.phpt b/ext/spl/tests/bug62328.phpt new file mode 100644 index 00000000000..33a8aeee953 --- /dev/null +++ b/ext/spl/tests/bug62328.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #62328 (cast_object takes precedence over __toString) +--CREDITS-- +leight at gmail dot com +--FILE-- +__toString() . PHP_EOL; + +?> +--EXPECT-- +__toString +__toString