summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39445.phpt
blob: cf1607f2dddce0e048bc7ba7e09b443127e73b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
--FILE--
<?php
class test {
	public function __toString() {
		debug_backtrace();
		return 'lowercase';
	}
}

	$test = new test();
	echo strtoupper($test);
?>
--EXPECT--
LOWERCASE