Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d84e97

Browse files
committed
Add an additional test for concat_function
This tests the path op1_string_from_func == true, result == op1, op1 == op2. This wasn't tested before.
1 parent 75c084e commit 9d84e97

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Test concatenating a class instance that has __toString with itself
3+
--FILE--
4+
<?php
5+
class Tmp {
6+
public function __toString() {
7+
return "abc";
8+
}
9+
}
10+
11+
$tmp = new Tmp;
12+
$tmp .= $tmp;
13+
echo $tmp . "\n";
14+
?>
15+
--EXPECT--
16+
abcabc

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /