Edit report at http://bugs.php.net/bug.php?id=52099&edit=1

 ID:               52099
 User updated by:  carrieraglan at gmail dot com
 Reported by:      carrieraglan at gmail dot com
 Summary:          fdf_get_value max size
-Status:           Feedback
+Status:           Open
 Type:             Bug
 Package:          FDF related
 Operating System: Windows
-PHP Version:      5.3.2
+PHP Version:      5.2.10

 New Comment:

version should be 5.2.10


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to