xref: /PHP-5.5/Zend/tests/bug39445.phpt (revision 610c7fbe)
1--TEST--
2Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
3--FILE--
4<?php
5class test {
6	public function __toString() {
7		debug_backtrace();
8		return 'lowercase';
9	}
10}
11
12	$test = new test();
13	echo strtoupper($test);
14?>
15--EXPECT--
16LOWERCASE
17