There are numerous fixes for that in 7.5 so I suggest you continue your hunt there. I doubt it's feasible to backport all that to make longer ints and doubles work flawlessly in 7.4.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-19 06:39: Subject: bug: casts to string for long double and long long int are incorrect (7.4.28 rel)
Hi,
Still experimenting with long* types, found one problem (so far):
--- opcodes.c:367 --- case T_INT: sprintf(buf, "%ld", (long)sp[-1].u.integer); break;
case T_FLOAT: sprintf(buf, "%f", (double)sp[-1].u.float_number); break; --- snip ---
As you can see, it won't work correctly in case when long long ints or long doubles are in use. Testsuite is also a bit unprepared for this case (several errors, most of them due to this bug).
Regards, /Al
/ Brevbäraren