--TEST-- Test sprintf() function : Rope Optimization --FILE-- --EXPECTF-- string(5) "const" string(3) "foo" string(7) "foo/bar" ArgumentCountError: 4 arguments are required, 3 given in %s:32 Stack trace: #0 %s(32): sprintf('%s/%s/%s', 'foo', 'bar') #1 {main} Error: Object of class stdClass could not be converted to string in %s:36 Stack trace: #0 {main} string(4) "BAZ/" string(4) "/BAZ" string(5) "/BAZ/" string(12) "foobarBAZfoo" string(15) "foo:bar/BAZ-BAZ" Called! string(3) "foo" string(%d) "%ssprintf_rope_optimization_001.php-%d-1" string(9) "abcdefghi" Called Called Called Error: Object of class Foo could not be converted to string in %s:73 Stack trace: #0 {main} object(Closure)#3 (2) { ["function"]=> string(7) "sprintf" ["parameter"]=> array(2) { ["$format"]=> string(10) "" ["$values"]=> string(10) "" } } string(2) "%s" string(2) "%s" Warning: Array to string conversion in %s on line 89 Warning: Array to string conversion in %s on line 89 Warning: Array to string conversion in %s on line 89 string(17) "Array-Array-Array" string(0) "" ArgumentCountError: sprintf() expects at least 1 argument, 0 given in %s:97 Stack trace: #0 %s(97): sprintf() #1 {main} string(4) "1--1" Done