--TEST-- Test sprintf() function : Rope Optimization for '%d'. --FILE-- --EXPECTF-- string(2) "42" string(8) "42/-1337" string(10) "42/-1337/3" Warning: Object of class stdClass could not be converted to int in %s on line 33 string(12) "42/-1337/3/1" string(2) "1/" string(2) "/1" string(3) "/1/" string(13) "42/-1337/1/42" string(8) "0/53/1/3" Called Called Called Warning: Object of class Foo could not be converted to int in %s on line 57 Warning: Object of class Foo could not be converted to int in %s on line 57 Warning: Object of class Foo could not be converted to int in %s on line 57 string(5) "1/1/1" string(5) "0/0/0" string(42) "9223372036854775807/0/-9223372036854775808" string(24) "2147483647/0/-2147483648" string(5) "1/0/1" string(3) "1/0" string(1) "0" Done