Edit report at http://bugs.php.net/bug.php?id=52099&edit=1
ID: 52099 Updated by: ka...@php.net Reported by: carrieraglan at gmail dot com Summary: fdf_get_value max size -Status: Open +Status: Wont fix Type: Bug Package: FDF related Operating System: Windows PHP Version: 5.2.10 Block user comment: N New Comment: Digging somewhat into this, the allocated buffer is "too short" according to fdftk and when it tries to realloc the memory (256b + 2b) its still too short and bails. Could be a bug in fdf, but since fdf is not actively developed anymore then I'll mark this as a Won't fix as 5.2 is only in security fixes mode only Previous Comments: ------------------------------------------------------------------------ [2010-06-16 21:35:49] carrieraglan at gmail dot com version should be 5.2.10 ------------------------------------------------------------------------ [2010-06-16 17:31:33] paj...@php.net FDF is not included in php anymore, do you mean 5.2.13? ------------------------------------------------------------------------ [2010-06-16 17:27:11] carrieraglan at gmail dot com Description: ------------ if fdf_set_value is set with a string of 255 characters nothing is returned when using fdf_get_value Test script: --------------- <? $outfdf = fdf_create(); $value = 'PAINT (including paint, lacquer, enamel, stain, shellac, varnish, polish, liquid filler and liquid lacquer base) with not more than 20 per cent nitrocellulose by mass if the nitrogen content of the nitrocellulose is not more than 12.6 per cent by mass; or'; fdf_set_value($outfdf, 'Stringof255characters', $value, 0); print "Test1: "; print fdf_get_value($outfdf, 'Stringof255characters'); //prints '' print "<br>"; $value = substr($value,0,253); fdf_set_value($outfdf, 'Stringof253characters', $value, 0); print "Test2: "; print fdf_get_value($outfdf, 'Stringof253characters'); //prints the 253 characters of the string ?> Expected result: ---------------- both print fdf_get_value should print the value of the string Actual result: -------------- if fdf_set_value is set with a string of 255 characters nothing is returned when using fdf_get_value ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52099&edit=1